{"library":"pytest-loop","title":"pytest-loop","description":"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.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pytest-loop"],"cli":{"name":"pytest","version":"pytest 9.0.3"}},"imports":["pytest.mark.loop decorator (no import needed; automatically registered as a marker)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# test_example.py\nimport pytest\n\ndef test_flaky():\n    import random\n    assert random.choice([True, False])\n\n# Run with: pytest --loop 10 test_example.py\n# Or use @pytest.mark.loop(10) on a single test\n","lang":"python","description":"Basic usage: run a test in a loop until it fails or reaches the given count.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}