As an alternative, there is also `pytest --looponfail`.
Install pytest and pytest-xdist, then run:
pytest --looponfail
It watches for file changes and automatically re-runs any previously failed test. Runs the complete test suite (or a selected subset of tests via additional arguments) if none failed.