Skip to content

Respect --raise when mix test --warnings-as-errors passes with warnings#15390

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
jonatanklosko:jk-mix-test-warnings-rise
May 15, 2026
Merged

Respect --raise when mix test --warnings-as-errors passes with warnings#15390
josevalim merged 1 commit into
elixir-lang:mainfrom
jonatanklosko:jk-mix-test-warnings-rise

Conversation

@jonatanklosko
Copy link
Copy Markdown
Member

Currently if mix test --warnings-as-errors --raise passes and there are test warnings, it only exits with status as usual, rather than raising. Note that --raise already applies not only to tests failing, but also when no tests match the given pattern, so it makes sense to apply it to warnings for consistency.

@josevalim josevalim merged commit 536e53b into elixir-lang:main May 15, 2026
14 of 15 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

@jonatanklosko jonatanklosko deleted the jk-mix-test-warnings-rise branch May 15, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants