pkboom/laravel-test-watcher

0.1.2 2022-09-27 17:28 UTC

This package is auto-updated.

Last update: 2022-11-27 17:53:57 UTC


README

Laravel Test Watcher will rerun tests whenever you save changes.

Installation

composer require pkboom/laravel-test-watcher

You can publish the config:

php artisan vendor:publish --provider="Pkboom\TestWatcher\TestWatcherServiceProvider" --tag="config"

Usage

php artisan test:watch

// with name
php artisan test:watch ExampleTest

Then tests will be run.

demo1.png

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.

demo2.png

To publish the config file to config/test-watcher.php run:

php artisan vendor:publish --provider="Pkboom\TestWatcher\TestWatcherServiceProvider"

License

The MIT License (MIT). Please see MIT license for more information.