Abort ExUnit on the first test that does not pass
There is such an option since Elixir 1.8.
Use the --max-failures
switch to limit the number of tests evaluated with failure. To halt the test suite after the first failure, run this:
mix test --max-failures 1