Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weierophinney/phpunit-watch
Execute PHPUnit when files change
https://github.com/weierophinney/phpunit-watch
Last synced: 3 days ago
JSON representation
Execute PHPUnit when files change
- Host: GitHub
- URL: https://github.com/weierophinney/phpunit-watch
- Owner: weierophinney
- License: mit
- Created: 2014-10-09T14:35:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-09T14:37:43.000Z (about 10 years ago)
- Last Synced: 2024-12-19T07:34:56.702Z (4 days ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
phpunit-watch
=============Node utility for executing phpunit on filesystem changes.
Installation
------------```console
$ git clone weierophinney/phpunit-watch
$ cd phpunit-watch
$ npm install
$ cd ~/bin # or any other entry on your $PATH
$ ln -s path/to/phpunit-watch/index.js phpunit-watch
```Usage
-----```console
$ cd some/project
$ phpunit-watch .
```At that point, any changes you make in that directory will trigger phpunit to execute.
Notes
------ If phpunit exists as `vendor/bin/phpunit` or `bin/phpunit` of the directory being watched, that executable will be used; otherwise, it will use whatever phpunit is on your path.
- A backoff functionality is built in; if additional changes are registered while phpunit is still running, they will be delayed until the current run is complete. If too many changes pile up while phpunit is already running, phpunit-watch will exit; this is currently hard-coded to 5.
- The script assumes that you can run phpunit from the top-level directory of your project.