Merge branch 'better_flag_names' of https://github.com/MichaelAquilina/pytest into features

This commit is contained in:
Bruno Oliveira 2016-01-27 20:02:50 -02:00
commit fde44f4f30
1 changed files with 2 additions and 2 deletions

View File

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