Hi Jason!

I wonder if you could stop and start the Mix application before and/or
after every test and if that would be enough to purge/clear all state.
Maybe it won't  work with `mix test` per-se but it is worth trying.


*José Valim*
www.plataformatec.com.br
Founder and Director of R&D


On Sat, Jan 11, 2020 at 6:37 PM Jason Axelson <[email protected]>
wrote:

> Hi,
>
> I'm working on maintaining ElixirLS (
> https://github.com/elixir-lsp/elixir-ls/) and trying to cut down on the
> number of private api's it uses. One of these is a re-implementation of
> MixTest.Case that uses private functions from Mix.ProjectStack:
>
>
> https://github.com/elixir-lsp/elixir-ls/blob/b1415ce8611657826083e6de7b793389b7edc549/apps/elixir_ls_utils/test/support/mix_test.case.ex
>
> In order to replace that usage we need to be able to run our tests in
> various fixtures, similarly to how the mix tests do in
> https://github.com/elixir-lang/elixir/blob/c7f0295d6da268ffc85292e104f11f4d08423805/lib/mix/test/mix/umbrella_test.exs#L7
>
> Here's an example of using the `in_fixture` from the copy of
> `MixTest.Case`:
>
> https://github.com/elixir-lsp/elixir-ls/blob/7a1fed551739b2dafcf1634365ca3733ec8d18dd/apps/language_server/test/server_test.exs#L274
>
> Any suggestions for alternative patterns would be helpful as well, but
> ideally the similar test cases could be kept in the same file so that they
> can be easily compared, even if they require code from different test
> fixtures.
>
> Thanks,
> Jason
>
> --
> 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/CAHMz6kzpqbHm%2B7BFCjEOqum29Pbma9m-OG8hjgDfw6fMm1trmw%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAHMz6kzpqbHm%2B7BFCjEOqum29Pbma9m-OG8hjgDfw6fMm1trmw%40mail.gmail.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/CAGnRm4%2BexKJRpJPO5UbdExQcfB7AmRcUPR_zQtFR1EYa8qoQuQ%40mail.gmail.com.

Reply via email to