Laravel Test Watcher will rerun tests whenever you save changes.
composer require pkboom/laravel-test-watcher
You can publish the config:
php artisan vendor:publish --provider="Pkboom\TestWatcher\TestWatcherServiceProvider" --tag="config"
php artisan test:watch
// with name
php artisan test:watch ExampleTest
Then tests will be run.
At the bottom you have three options:
- f: filter
- q: quit
Press f to filter tests.
Type a name you want to filter by. Press tab
to get help from autocomplete.
To publish the config file to config/test-watcher.php run:
php artisan vendor:publish --provider="Pkboom\TestWatcher\TestWatcherServiceProvider"
The MIT License (MIT). Please see MIT license for more information.