Improve docs for last-failed-no-failures

Improve documentation for last-failed-no-failures to make the different options and the functionality more clear.

Closes #11354
This commit is contained in:
Sean Patrick Malloy
2023-08-28 17:14:45 -07:00
committed by GitHub
parent 941b203c94
commit 76ba7db6ce
3 changed files with 22 additions and 8 deletions

View File

@@ -1892,8 +1892,11 @@ All the command-line flags can be obtained by running ``pytest --help``::
tests. Optional argument: glob (default: '*').
--cache-clear Remove all cache contents at start of test run
--lfnf={all,none}, --last-failed-no-failures={all,none}
Which tests to run with no previously (known)
failures
With ``--lf``, determines whether to execute tests when there
are no previously (known) failures or when no
cached ``lastfailed`` data was found.
``all`` (the default) runs the full test suite again.
``none`` just emits a message about no known failures and exits successfully.
--sw, --stepwise Exit on test failure and continue from last failing
test next time
--sw-skip, --stepwise-skip