Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ your test, or tests, to be run:

$ pytest --count=10 test_file.py

Each test collected by pytest will be run :code:`count` times.
Each pytest test function will be run :code:`count` times.

Doctests are not repeated. Doctests collected from Python modules with
:code:`--doctest-modules` or from text files run once, regardless of
:code:`--count`.

If you want to mark a test in your code to be repeated a number of times, you
can use the :code:`@pytest.mark.repeat(count)` decorator:
Expand Down