pkboom/laravel-test-watcher

0.1.2 2022-09-27 17:28 UTC

This package is auto-updated.

Last update: 2024-11-27 22:38:31 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.

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"

License

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