Open
Description
My understanding of --lastfailed
is that we want to be quicker than a default run, and only test the failing tests. Right now I'm working on a project with 364 tests, and when I use lastfailed, it appears pytest is still traversing all test files, which seems sub optimal, given we have a cache of filenames and test names.
I've attached a condensed output to stdout for added context:
/src# pytest --last-failed
run-last-failure: rerun last 4 failures
collected 364 items