docs: changing some docs for last-failed-no-failures

to better explain functionality
This commit is contained in:
Sean Malloy 2023-08-26 13:56:29 -07:00
parent 00fedcc439
commit b98d293fc0
3 changed files with 6 additions and 3 deletions

View File

@ -336,6 +336,7 @@ Samuele Pedroni
Sanket Duthade Sanket Duthade
Sankt Petersbug Sankt Petersbug
Saravanan Padmanaban Saravanan Padmanaban
Sean Malloy
Segev Finer Segev Finer
Serhii Mozghovyi Serhii Mozghovyi
Seth Junot Seth Junot

View File

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

View File

@ -499,7 +499,8 @@ def pytest_addoption(parser: Parser) -> None:
dest="last_failed_no_failures", dest="last_failed_no_failures",
choices=("all", "none"), choices=("all", "none"),
default="all", default="all",
help="Which tests to run with no previously (known) failures", help="Determines whether to execute tests when there are no previously (known)"
"failures or when no cached ``lastfailed`` data was found",
) )