Suppose we have a module A
that requires a configuration. When we consume A, it's just OK to put [applications: [:a]]
in mix.exs and put config :a, []
in config/config.exs in our project.
But when we're developers of the module A, how/when can we configure :a
on a command of mix test
in the A directory? Can we do that in test/test_helpers.exs or somewhere?
if Mix.env == :test do ... end
in config.exs not what you want? – Dogbertmix test
changesMix.env
to be:test
, I see. – Soichi Takamura