Skip to content

Commit a5602a7

Browse files
committed
Update docs to define include and exclude filters
1 parent 0bd45a0 commit a5602a7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/ex_unit/lib/ex_unit.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ defmodule ExUnit do
145145
146146
* `:autorun` - If ExUnit should run by default on exit, defaults to `true`;
147147
148-
* `:filter` - Constrain which tests are run by matching against a keyword list of tags;
148+
* `:include` - Specify which tests are run by skipping tests that do not match the filter
149+
150+
* `:exclude` - Specify which tests are run by skipping tests that match the filter
149151
"""
150152
def configure(options) do
151153
Enum.each options, fn { k, v } ->

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ defmodule Mix.Tasks.Test do
4949
* `--no-compile` - do not compile, even if files require compilation
5050
* `--no-start` - do not start applications after compilation
5151
* `--no-color` - disable color in the output
52-
* `--filter` - skip tests that don't have matching tags
52+
* `--include` - skip tests that do not match the filter
53+
* `--exclude` - skip tests that match the filter
5354
5455
## Configuration
5556

0 commit comments

Comments
 (0)