Add explicit flag names for failed first and last failed

This commit is contained in:
Michael Aquilina 2016-01-27 21:28:38 +00:00
parent 52ac6cd7a9
commit e35ce98f89
1 changed files with 2 additions and 2 deletions

View File

@ -155,11 +155,11 @@ class LFPlugin:
def pytest_addoption(parser):
group = parser.getgroup("general")
group.addoption(
'--lf', action='store_true', dest="lf",
'--lf', '--last-failed', action='store_true', dest="lf",
help="rerun only the tests that failed "
"at the last run (or all if none failed)")
group.addoption(
'--ff', action='store_true', dest="failedfirst",
'--ff', '--failed-first', action='store_true', dest="failedfirst",
help="run all tests but run the last failures first. "
"This may re-order tests and thus lead to "
"repeated fixture setup/teardown")