Matt
Matt

Reputation: 88077

Can you run ExUnit tests in an environment other than "test"

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

Answers (1)

Lauro Moura
Lauro Moura

Reputation: 750

Have you tried the MIX_ENV variable?

$ MIX_ENV=yourenv mix test

Upvotes: 4

Related Questions