johnkary/phpunit-speedtrap
PHPUnit SpeedTrap reports slow tests and slow test suites so you can find and fix performance bottlenecks. Set a time threshold and it flags any test exceeding it, helping keep your suite fast.
Consider adopting when:
Look elsewhere or proceed with caution when:
--log-junit / teamcity output parsed by CI, or full APM/tracing tooling. Duplicating overlapping tooling adds noise.For executives (one paragraph): Developer time is our most expensive and least elastic resource, and slow test suites tax it on every commit. This is a free, MIT-licensed, single-line addition to our PHP test runner that names exactly which tests are slow, so we stop guessing and start fixing the handful of tests that actually cost us hours. It carries no production risk — it never touches the running application — and it is removable in one config change. The realistic outcome is measurable CI cycle-time reduction and lower CI spend, with the main caveat being a compatibility check against our current PHPUnit version that engineering can validate in under a day.
For engineering leadership:
For the engineering team (the practical framing): Add the listener, set a threshold that matches our current median test time so the report is noisy-but-honest at first, then ratchet it down as we fix offenders. Maintain an explicit ignore list with a required comment for anything intentionally heavy, so the report stays trustworthy and people keep reading it. The real win is not the tool — it is the norm it makes enforceable: "your new test does not get to be the slow one."
How can I help you explore Laravel packages today?