sjvrijn / pytest-last-failed

A GitHub Action to enable running pytest --last-failed in your CI
Apache License 2.0
8 stars 1 forks source link

Prevent last-failed tests from running twice if they pass #1

Open sjvrijn opened 1 year ago

sjvrijn commented 1 year ago

Currently, after pytest --last-failed has succeded, i.e., all last failed tests pass again, the whole suite is run again, including the ones that were already run.

If possible, these tests should be excluded from the full run afterwards, such that in any run, each test is run at most once.

mdesco-crgl commented 7 hours ago

I would actually like an option to disable the subsequent run to occur. if --lf succeeds, then I can assume that the whole suite is passing. Running it again wastes my CI minutes