Reputation: 88077
When you run ExUnit tests, they usually run in the "test" environment (Mix.env="test"). Is there a way to have them run in a different environment, like "unittest"? I'd like to use "test" for configuring our QA testing environment.
Upvotes: 2
Views: 420
Reputation: 750
Have you tried the MIX_ENV variable?
$ MIX_ENV=yourenv mix test
Upvotes: 4