pytest-repeat is a pytest plugin that makes it easy to repeat a single test, or multiple tests, a specific number of times. Unfortunately, it doesn't seem to work with Python 3.14, even though there is no rational reason why it shouldn't work.
Links:
**Sponsored by: **
The Complete pytest course) is now a bundle, with each part available separately.
pytest Primary Power) teaches the super powers of pytest that you need to learn to use pytest effectively.
Using pytest with Projects) has lots of "when you need it" sections like debugging failed tests, mocking, testing strategy, and CI
Then pytest Booster Rockets) can help with advanced parametrization and building plugins.
Whether you need to get started with pytest today, or want to power up your pytest skills, PythonTest) has a course for you.