Skip to content

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

Closed
@naserca

Description

@naserca

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions