Skip to content

Commit 72f29f3

Browse files
authored
Add Priority to README (#296)
1 parent bd8cb4d commit 72f29f3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,21 @@ Compatibility
230230

231231
.. END-COMPATIBILITY
232232
233+
.. START-PRIORITY
234+
235+
Priority
236+
-------------
237+
238+
You can specify arguments in three places. So if you set the number of reruns in all three,
239+
which one takes priority?
240+
241+
* Top priority is the marker, such as ``@pytest.mark.flaky(reruns=1)``
242+
* Second priority is what's specified on the command line, like ``--reruns=2``
243+
* Last priority is the ``pyproject.toml`` (or ``pytest.ini``) file setting, like ``reruns = 3``
244+
245+
.. END-PRIORITY
246+
247+
233248
.. START-CONTRIBUTING
234249
235250
Resources

0 commit comments

Comments
 (0)