Re: [elixir-core:10467] Add ability to use 'original' mix task

16 views
Skip to first unread message

Allen Madsen

unread,
Sep 30, 2021, 2:13:35 PM9/30/21
to elixir-l...@googlegroups.com
I assume you're referring to the test alias that phoenix generates for you. If so, you can create another alias that calls just tests.

  defp aliases do
    [
      test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
      "just.test": ["test"]
    ]
  end


On Thu, Sep 30, 2021 at 2:22 AM Generic Jam <gener...@gmail.com> wrote:

Right now one can override a mix task in mix.exs. It would be useful if one could still access the 'original'.

My use case:

Our 'mix test' is remapped to reset the DB, etc which is what we need for the CI, etc.

However, I want to be able to run an individual test in order to drive the code and I may not even need to touch the DB so resetting it is just a waste of time.

Perhaps these tasks could have an underlying discoverable name that one could use to still access them when they've been overridden.

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/81c59d8b-93ae-41b3-b9d4-da185fe6558cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages