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

Allen Madsen
http://www.allenmadsen.com


On Thu, Sep 30, 2021 at 2:22 AM Generic Jam <[email protected]> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/81c59d8b-93ae-41b3-b9d4-da185fe6558cn%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/81c59d8b-93ae-41b3-b9d4-da185fe6558cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAK-y3Cu7worZkwrezAmhQ68GZxKtkFnNtM5U7vrQgQtB36se2g%40mail.gmail.com.

Reply via email to