We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Exploring ExUnit 1.17's Feature to Identify Intermittent Test Failures
95
clicks

Source: elixirstreams.com
Elixir 1.17 now includes a new flag for the 'mix test' command that helps developers manage the frustrating issue of intermittent tests. With this new feature, users can run a specific test multiple times until it fails, helping to pinpoint the reason for the intermittent failure. By using the command 'mix test test/path/to/failing/test.exs --repeat-until-failure 100', developers can set how many times to run the test before it fails. If a failure occurs, the seed can be captured, allowing the developer to rerun the failing test with 'mix test test/path/to/failing/test.exs --seed 123456'. This new capability provides a structured way to investigate issues related to flaky tests, improving the reliability of test results.
Related posts
© HashMerge 2025