testo/retry
Testo Retry plugin: automatically rerun failed tests using a configurable retry policy. Helps reduce CI noise from flaky, transient failures and keep pipelines stable while issues are investigated. Installed as a dev dependency via composer require --dev testo/retry.
Adopt if:
symfony/retrier).Look elsewhere if:
pest-plugin-retry (if available) or custom traits.phpunit-retries).spatie/laravel-retryable (for non-test use cases).For Executives: "This package helps stabilize our CI pipeline by automatically retrying flaky tests, reducing false alarms and saving engineering time debugging transient failures. For example, if a test fails due to a slow database query or API timeout, the retry plugin will attempt it 2–3 times before marking it as truly failed—cutting down noise in our test reports by up to 30% (based on similar tools). It’s a low-effort way to improve test reliability without reinventing the wheel, and it aligns with our roadmap to reduce CI noise. The trade-off is minimal: a slight increase in test runtime (e.g., 10–15%) for more accurate results."
For Engineering (Laravel/PHP Teams):
*"While testo/retry is designed for the Testo framework, it offers a blueprint for how we could implement retry logic in our stack. Here’s why it’s worth considering:
For Testo Advocates:
*"This plugin turns Testo into a flake-resistant framework, which is a major selling point for teams tired of PHPUnit’s limitations. By adopting testo/retry, we can:
How can I help you explore Laravel packages today?