Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to distinguish between mix test --warnings-as-errors test failures (exit 2) or test failures with warnings in test files (exit 2) #14245

Open
naserca opened this issue Jan 30, 2025 · 0 comments

Comments

@naserca
Copy link
Contributor

naserca commented Jan 30, 2025

In our CI pipeline, we rerun failed tests once to pass flaky tests that fail inconsistently. This means the following scenario is quite common:

  1. mix test --warnings-as-errors -> exit 2
    1. flaky test failure in foo_test.exs
    2. compilation warning in bar_test.exs but tests pass
  2. mix test --failed --warnings-as-errors -> exit 0
    1. flaky foo_test.exs passes
    2. compiler doesn't require bar_test.exs again so the warning is lost

Happy to help with a solution here if folks think the problem is worth solving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants