Skip to content

Commit e4851a6

Browse files
committed
Document pytest_add_cli_args_test_selection instead of tests_dir
1 parent fad78fd commit e4851a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ In `setup.cfg` in the root of your project you can configure mutmut if you need
9090
9191
[mutmut]
9292
paths_to_mutate=src/
93-
tests_dir=tests/
93+
pytest_add_cli_args_test_selection=tests/
9494
9595
If you use `pyproject.toml`, you must specify the paths as array in a `tool.mutmut` section:
9696

9797
.. code-block:: toml
9898
9999
[tool.mutmut]
100100
paths_to_mutate = [ "src/" ]
101-
tests_dir = [ "tests/" ]
101+
pytest_add_cli_args_test_selection= [ "tests/" ]
102102
103103
See below for more options for configuring mutmut.
104104

@@ -206,7 +206,7 @@ You can add and override pytest arguments:
206206
.. code-block:: python
207207
208208
# for CLI args that select or deselect tests, use `pytest_add_cli_args_test_selection`
209-
pytest_add_cli_args_test_selection = [ "-m", "not fail", "-k=test_include"]
209+
pytest_add_cli_args_test_selection = ["-m", "not fail", "-k=test_include"]
210210
211211
# for other CLI args, use `pytest_add_cli_args`
212212
pytest_add_cli_args = ["-p", "no:some_plugin"] # disable a plugin

0 commit comments

Comments
 (0)