File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ def pytest_addoption(parser):
91
91
"where all names are substring-matched against test names "
92
92
"and their parent classes. Example: -k 'test_method or test_"
93
93
"other' matches all test functions and classes whose name "
94
- "contains 'test_method' or 'test_other'. "
94
+ "contains 'test_method' or 'test_other', while -k 'not test_method' "
95
+ "matches those that don't contain 'test_method' in their names. "
95
96
"Additionally keywords are matched to classes and functions "
96
97
"containing extra names in their 'extra_keyword_matches' set, "
97
98
"as well as functions which have names assigned directly to them."
Original file line number Diff line number Diff line change
1
+ In help text of ``-k`` option, add example of using ``not`` to not select certain tests whose names match the provided expression.
You can’t perform that action at this time.
0 commit comments