Tests Watcher is a continuous testing dashboard made with Laravel by Antonio Carlos Ribeiro. According to the author, think of it as “Laravel Horizon for all of your tests.” It supports PHPUnit, Laravel Dusk, PhpSpec, Behat, Atoum, and any test framework executed in the terminal. This project isn’t only for PHP, you could integrate this dashboard with Jest or Rake tests, for example.
If you want to try it out with Laravel Valet, here’s a quick start example:
1laravel new ci2cd ci3composer require pragmarx/ci4php artisan vendor:publish --provider="PragmaRX\TestsWatcher\Package\ServiceProvider"5valet link ci67# configure database on your .env8php artisan migrate9php artisan ci:watch & php artisan ci:work &10open http://ci.dev/tests-watcher/dashboard
There are two commands responsible for updating the CI dashboard: Watcher and Tester.
The Watcher watches for test changes. If a file in your project changes, the whole test suite will run. If you change a test file, only that specific test will run.
The Tester takes the tests from the run queue, executes the tests, and logs the results.
At the time of writing, this package is known to work with the following out-of-the-box:
- Nette Tester
Check out the official repo for more information on Tests Watcher and give it a try with a Laravel project.