I'm trying to imitate separate Unit and Integration tests in Elixir project. For Unit tests I don't need Supervision tree running, so ideally I'd like to use something like module tag, i.e. @moduletag :integration
which would group tests that require an App running. I can do it manually running tests twice:
mix test --no-start --only integration:false
mix test --only integration:true
But I'd prefer some integrated solution so that I would have to just run mix test
. There are options, such as start
and autorun
for ExUnit.configure/start, but they don't seem to cause any effect. Any suggestions?