Closed
Description
In our CI pipeline, we rerun failed tests once to pass flaky tests that fail inconsistently. This means the following scenario is quite common:
mix test --warnings-as-errors
-> exit 2- flaky test failure in
foo_test.exs
- compilation warning in
bar_test.exs
but tests pass
- flaky test failure in
mix test --failed --warnings-as-errors
-> exit 0- flaky
foo_test.exs
passes - compiler doesn't require
bar_test.exs
again so the warning is lost
- flaky
Happy to help with a solution here if folks think the problem is worth solving.