pytest: How to re-run FAILED and ERROR tests?

Viewed 9

pytest offers the helpful --lf flag to only re-run failed tests. However, this does not seem to include tests with an ERROR state, i.e. where an error happens in a pytest fixture. Any ideas on how to rerun both FAILED and ERROR tests?

0 Answers
Related