Running tests in an umbrella app
From the collection
Elixir
From the collection
Elixir
To run all tests
mix cmd --app child_app_name mix test --color
Specific file/line
mix cmd --app child_app_name mix test test/child_app_name_nice_test.exs:69 --color
We can also define a Mix task to make our life easier!
def aliases do [ child_test: "cmd --app child_app_name mix test --color" ] end
Then you call
mix child_test
or
mix child_test test/child_app_name_nice_test.exs:69