Issue #3295: Correct the usage of --last-failed-no-failures documentation

- add the missing --last-failed argument in the presented examples, for they are missleading and lead to think that the missing argument is not needed.
This commit is contained in:
Ammar Najjar 2018-05-17 22:49:44 +02:00
parent 45faaeca7a
commit f99da9058f
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ When no tests failed in the last run, or when no cached ``lastfailed`` data was
found, ``pytest`` can be configured either to run all of the tests or no tests,
using the ``--last-failed-no-failures`` option, which takes one of the following values::
pytest --last-failed-no-failures all # run all tests (default behavior)
pytest --last-failed-no-failures none # run no tests and exit
pytest --last-failed --last-failed-no-failures all # run all tests (default behavior)
pytest --last-failed --last-failed-no-failures none # run no tests and exit
The new config.cache object
--------------------------------