Download the PHP package fetzi/phpspec-watcher without Composer
On this page you can find all versions of the php package fetzi/phpspec-watcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fetzi/phpspec-watcher
More information about fetzi/phpspec-watcher
Files in fetzi/phpspec-watcher
Package phpspec-watcher
Short Description phpspec-watcher is a cli tool for the automatic execution of phpspec tests when code changes
License MIT
Homepage https://github.com/fetzi/phpspec-watcher
Informations about the package phpspec-watcher
phpspec Watcher
Introduction
phpspec-watcher is a tool for automating phpspec test execution when the source code of a project changes. On file save the watcher automatically triggers the phpspec test suite and informs the developer about the test results.
Installation
This tool can be installed globally with
or just for one package as dev-dependency
Usage
After a global installation you can invoke the watcher by calling
If you have installed the watcher as a dev-dependency for one project you can find the binary within the vendor bin directory.
Configuration
The watcher can be configured with a configuration file .phpspec-watcher.yml
stored in the project root directory.
The following listing shows the file structure and the option meanings:
To speed up the configuration thing there is an initialization command to bootstrap the config file with default values:
Notifications
The watcher triggers operating system notifications after executing the test suite.
To display the notification icons on Mac you need to install another notifier because AppleScript cannot display custom icons
Credits
The idea for creating this package was born after discovering the awesome phpunit-watcher package by Spatie.
License
The MIT License (MIT). Please see the License File for more information.
All versions of phpspec-watcher with dependencies
clue/stdio-react Version ^2.3
jolicode/jolinotif Version ^2.0.
react/event-loop Version ^1.1
symfony/console Version ^4.0 || ^5.0
symfony/finder Version ^4.0 || ^5.0
symfony/process Version ^4.0 || ^5.0
symfony/yaml Version ^4.0 || ^5.0