-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
plugin: stepwisetype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
The stepwise plugin exposes a shorthand option for the stepwise itself, however it requires a longer arg only for skip, I think these should be consistent and should offer shorthand versions for both.
def pytest_addoption(parser: Parser) -> None:
group = parser.getgroup("general")
group.addoption(
"--sw",
"--stepwise",
action="store_true",
dest="stepwise",
help="exit on test failure and continue from last failing test next time",
)
group.addoption(
"--stepwise-skip",
action="store_true",
dest="stepwise_skip",
help="ignore the first failing test but stop on the next failing test",
)
Expected:
pytest --sw-skip
Metadata
Metadata
Assignees
Labels
plugin: stepwisetype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch