A pytest plugin that allows running tests in a loop until they fail (or pass), useful for detecting flaky tests. Current version 1.0.13, compatible with Python >=3.7. Maintenance mode with infrequent releases.
pip install pytest-loopNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: run a test in a loop until it fails or reaches the given count.
Use pytest.mark.loop(N) for specific tests, or --loop N for global loop count.
Ensure tests are idempotent or use fixtures that clean up after each iteration.