--last-failed and --failed-first precedence #2308
Closed
Labels
Comments
this is a bugfix that would require a major release due to breaking behavior |
I agree that changing the behavior would make more sense and I can't think of a use-case for the existing behavior, so I'm |
Another +1 from me. If you'd like to have a go at submitting a patch that would be great. |
i submit https://xkcd.com/1172/ for version number considerations ^^ |
Submitted #2357 |
This was referenced May 31, 2017
This was referenced Mar 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I run pytest with
--failed-first
and--last-failed
, all tests are run. This is unintuitive for me, since I actually include--failed-first
in mypytest.ini
so it defaults to running failed tests first. However, sometimes I just want to run the failed tests so I add--last-failed
at the commend line, but that has no effect.I think this behaviour should be changed to
--last-failed
taking precedence over--failed-first
.I'd be happy to provide a patch for this if there's an agreement that this is should be changed.
The text was updated successfully, but these errors were encountered: