Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpunit Slow Test Detector Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • CI/CD Optimization: Reduce flaky or slow tests that block CI pipelines, improving developer velocity and release cadence.
  • Test Suite Health: Proactively identify and optimize slow tests, ensuring the test suite remains maintainable and scalable.
  • Build vs. Buy: Avoid reinventing a slow-test detection system; leverage this lightweight, battle-tested solution instead of custom scripts.
  • Developer Experience: Improve feedback loops by surfacing slow tests early, reducing frustration during local development.
  • Performance Roadmap: Align with broader performance initiatives (e.g., "reduce test suite runtime by 30% in 6 months").
  • Quality Gates: Enforce test performance thresholds as part of pre-merge checks (e.g., "no test may exceed 1s without justification").

When to Consider This Package

  • Adopt when:

    • Your PHPUnit test suite runs >500 tests or has >10% slow tests (subjective threshold).
    • CI/CD pipelines are bottlenecked by slow tests, increasing feedback loops.
    • You lack visibility into test execution times despite high test volume.
    • Your team prioritizes test maintainability and performance.
  • Look elsewhere if:

    • Your test suite is small (<100 tests) or runs in <10s total.
    • You use non-PHPUnit testing frameworks (e.g., Jest, RSpec).
    • You need advanced profiling (e.g., flame graphs) beyond simple duration tracking.
    • Your organization has strict compliance requirements (e.g., audit trails for test modifications), as this is a passive detector.

How to Pitch It (Stakeholders)

For Executives: "This package automatically flags slow PHPUnit tests, cutting CI/CD wait times and improving team productivity. For example, if a test takes 2x longer than the average, it’s surfaced immediately—saving hours weekly in debugging and optimization. It’s a no-code solution with minimal overhead, directly supporting our [performance/velocity] goals."

For Engineering Leaders: *"The phpunit-slow-test-detector integrates seamlessly into existing workflows with a single config change. It:

  • Reduces flaky test noise by catching regressions early.
  • Enforces performance standards (e.g., ‘no test >1s’) without manual tracking.
  • Works across PHPUnit v6–v13, so no version lock-in. Let’s pilot it in [Team X]’s CI pipeline—it’s a 10-minute setup with measurable impact."*

For Developers: "Tired of waiting for slow tests to run locally? This tool adds a one-line config to your phpunit.xml and highlights slow tests in your terminal output. No more guessing—just actionable data to optimize your test suite. Example output shows durations per test, so you can prioritize fixes."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony