Comparison
flaky vs pytest-rerunfailures vs pytest-retry
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Plugin for pytest that automatically reruns flaky tests.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install flakypytest plugin to re-run tests to eliminate flaky failures
Actively maintained. Last release 2 months ago, commits in 13 of the last 26 weeks. A safe choice.
$
pip install pytest-rerunfailuresAdds the ability to retry flaky tests in CI environments
Low maintenance activity. Last release 22 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install pytest-retryIn short
- flaky is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pytest-rerunfailures is the most used: 47.4M downloads a month, 15× more than flaky.
- pytest-rerunfailures also has the best Pythie’s Index (87).
- pytest-rerunfailures is growing fastest: downloads +15% over the last month.
- Safe default for a new project: pytest-rerunfailures.
Side by side
| Metric | flaky | pytest-rerunfailures | pytest-retry |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 19 | 87 |