pytest --last-failed
does not seem to remember failed subtests
#56
Labels
--last-failed
does not seem to remember failed subtests
#56
I'm experiencing an issue where it appears that
--last-failed
cannot remember a failed test if the failure occurs in a subtest.As a result, instead of only re-running the failed test
--last-failed
will re-run all tests.Additionally, no tests will run if
--last-failed
is used with--last-failed-no-failure=none
.Here is my test:
Result with
pytest -q
Looks good so far. This is expected output.
Result with
pytest -q --lf
It's re-running all tests including
test_passes
which didn't fail. This is unexpected.Result with
pytest -q --lf --lfnf=none
This is the worst case because I know something failed and it didn't re-run anything!
The text was updated successfully, but these errors were encountered: