pytest --lf

Category: Python & pip

pytest --lf

Re-run only the tests that failed in the last run

Re-runs only the tests that failed in the previous test run. --lf means 'last failed'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.