Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


This 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: