3 ms·
As an alternative, there is also `pytest --looponfail`. Install pytest and pytest-xdist, then run: pytest --looponfail It watches for file changes and au
by blumomo 5y ago
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.
- olzhasar 5y agoThis indeed works. But the problem with this approach is that pytest-xdist outputs result losing all colors. Viewing colorful output is more convenient for many users
- deleted 5y ago[deleted]