pytest -x

Category: Python & pip

pytest -x

Stop after the first failing test

Stops after the first test failure instead of running the entire suite. -x means 'exit on first failure'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.