From e35ce98f898b8e9d3f5637aff02355c61b8e8b1b Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Wed, 27 Jan 2016 21:28:38 +0000 Subject: [PATCH] Add explicit flag names for failed first and last failed --- _pytest/cacheprovider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_pytest/cacheprovider.py b/_pytest/cacheprovider.py index afd852de9..e5c11a878 100755 --- a/_pytest/cacheprovider.py +++ b/_pytest/cacheprovider.py @@ -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")