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 Watcher Laravel Package

spatie/phpunit-watcher

Automatically rerun PHPUnit tests whenever your code changes. Run phpunit-watcher watch to execute and re-execute tests on edits in app/src/tests. Supports passing through PHPUnit arguments (e.g. --filter) and works as a global tool or dev dependency.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerates developer feedback loops by automatically rerunning tests on code changes, reducing manual intervention and context switching
  • Supports "build vs buy" decisions by providing a mature, maintained open-source solution instead of custom tooling
  • Enables efficient TDD practices through immediate test results, improving code quality and development velocity
  • Reduces time spent on repetitive test execution, freeing developers to focus on feature development and debugging

When to Consider This Package

  • Adopt when using PHPUnit for testing in PHP projects where rapid iteration during development is critical
  • Ideal for teams practicing TDD or working on codebases with frequent changes requiring constant test validation
  • Avoid if using non-PHPUnit testing frameworks (e.g., Pest), or if testing is fully handled by CI/CD pipelines without local development feedback needs
  • Not recommended for projects with extremely large codebases where file-watching performance becomes an issue (though config options can mitigate this)
  • Consider alternatives like Jest for JavaScript projects or custom scripts if specific workflow requirements aren't met

How to Pitch It (Stakeholders)

For Executives: "This tool slashes developer time wasted on manual test reruns by up to 30%, accelerating feature delivery and reducing bugs in production. It's a zero-cost, open-source solution with strong community backing—no infrastructure or training needed. Every minute saved by developers translates directly to faster time-to-market and higher ROI."

For Engineering Teams: "Integrates seamlessly into your existing workflow with minimal setup: watch specific directories, customize PHPUnit arguments, and get desktop notifications on test results. Backed by Spatie’s proven open-source maintenance, it’s battle-tested and actively updated. Simply install via Composer and start coding with instant feedback—no more context switching between coding and test runs."

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests