Note: Shorter feedback loops with Elixir tests

April 20, 2024
testing elixir

In Ruby, you have the --fail-fast flag, which stops running the test suite at the first failed test. Convenient to get shorter feedback loops, with a long running test suite.

In Elixir, you can achieve the same with:

mix test --max-failures 1

And then when a test fails, you fix it, and make sure that it works with:

mix test --failed

That makes for shorter feedback loops!

Piping arithmetic in Elixir Hello World, strings in Zig