Skip to content

Commit a92f92e

Browse files
committed
Improve docs for --warnings-as-errors, closes #13443
1 parent 36da99b commit a92f92e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/mix/lib/mix/tasks/test.ex

+5-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,11 @@ defmodule Mix.Tasks.Test do
199199
Note that in trace mode test timeouts will be ignored as timeout is set to `:infinity`
200200
201201
* `--warnings-as-errors` *(since v1.12.0)* - treats warnings as errors and returns a non-zero
202-
exit status. This option only applies to test files. To treat warnings as errors during
203-
compilation and during tests, run:
202+
exit status if the test suite would otherwise pass. Note that failures reported by
203+
`--warnings-as-errors` cannot be retried with the `--failed` flag.
204+
205+
This option only applies to test files. To treat warnings as errors during compilation and
206+
during tests, run:
204207
MIX_ENV=test mix do compile --warnings-as-errors + test --warnings-as-errors
205208
206209
## Configuration

0 commit comments

Comments
 (0)