File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 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):
9191 "where all names are substring-matched against test names "
9292 "and their parent classes. Example: -k 'test_method or test_"
9393 "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. "
9596 "Additionally keywords are matched to classes and functions "
9697 "containing extra names in their 'extra_keyword_matches' set, "
9798 "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