phpunit-watchr-2
v0.5.0
Published
A simple script to watch directories recursivly and run phpunit tests
Downloads
2
Readme
phpunit-watchr
A NodeJS app to watch directories and run PHPUnit tests.
Installation
The following command will install the application. Use -g
to install as a global binary.
[sudo] npm install [-g] phpunit-watchr-2
Running The Server
Running the app is easy. If you installed globally, then starting the app is as easy as:
phpunit-watchr [path to phpunit executable to use] [paths to watch recursivly] [phpunit-configuration]
To define more than one path to watch separate them with a comma, e.g.: /tests,/src
Defaults
- phpunit-executable =
phpunit
- paths =
.
- phpunit-parameter =
--colors
Example usage
Setting phpunit-executable:
phpunit-watchr /project/vendor/phpunit/phpunit/phpunit
Setting path:
phpunit-watchr null './php/tests'
Setting paths:
phpunit-watchr null ./php/tests,./tests
Setting PHPUnit configuration:
phpunit-watchr null './php/tests' '--strict --colors'
Licence
This project is licensed under MIT license.