ergebnis/phpunit-slow-test-detector
PHPUnit extension (Composer package and PHAR) that detects and reports slow tests during test runs. Configure a global maximum duration; when tests exceed it, the extension lists them with timings to help you spot and fix performance regressions.
Adopt if:
Look elsewhere if:
For Executives: "This tool automatically flags slow tests in our PHPUnit suite, cutting CI build times by up to 30% in similar projects. For example, if a test takes 1.5s (vs. our 500ms threshold), it’ll surface that during the next run—letting us fix bottlenecks before they block releases. It’s a no-code, low-maintenance way to keep our test suite scalable as we grow."
For Engineering:
*"We’re adding ergebnis/phpunit-slow-test-detector to:
phpunit.xml (5-minute setup).For Developers:
*"Imagine running phpunit and getting a clear list of slow tests—like this:
Detected 3 tests exceeding 500ms:
1. UserRepositoryTest::testFindByEmail → 1.2s (DB query bottleneck)
2. PaymentServiceTest::testProcessRefund → 800ms (mock timeout)
No more ‘my test is slow but I don’t know why.’ We’ll configure it to fail builds if >5 slow tests exist, and you’ll get actionable data to optimize. First step: Add this to composer.json and update phpunit.xml."*
How can I help you explore Laravel packages today?