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 my pytest.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.
If I run pytest with
--failed-firstand--last-failed, all tests are run. This is unintuitive for me, since I actually include--failed-firstin mypytest.iniso it defaults to running failed tests first. However, sometimes I just want to run the failed tests so I add--last-failedat the commend line, but that has no effect.I think this behaviour should be changed to
--last-failedtaking 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.