Skip to content

Commit a97fcf9

Browse files
lexmagJosé Valim
authored andcommitted
Add a note about line filter for a file with multiple test cases
Signed-off-by: José Valim <[email protected]>
1 parent f438efb commit a97fcf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ defmodule Mix.Tasks.Test do
100100
101101
mix test --only line:12 test/some/particular/file_test.exs
102102
103+
Note that line filter takes the closest test on or before the given line number.
104+
In the case a single file contains more than one test module (test case),
105+
line filter applies to every test case before the given line number, thus more
106+
than one test might be taken for the run.
107+
103108
## Configuration
104109
105110
* `:test_paths` - list of paths containing test files, defaults to

0 commit comments

Comments
 (0)