Skip to content

Commit 84c4b64

Browse files
authored
Better document -k partial matching (#7610)
1 parent d688fef commit 84c4b64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/en/example/markers.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ Or to select "http" and "quick" tests:
201201
You can use ``and``, ``or``, ``not`` and parentheses.
202202

203203

204+
In addition to the test's name, ``-k`` also matches the names of the test's parents (usually, the name of the file and class it's in),
205+
attributes set on the test function, markers applied to it or its parents and any :attr:`extra keywords <_pytest.nodes.Node.extra_keyword_matches>`
206+
explicitly added to it or its parents.
207+
208+
204209
Registering markers
205210
-------------------------------------
206211

0 commit comments

Comments
 (0)