0.5.0 • Published 8 years ago

phpunit-watchr-2 v0.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

phpunit-watchr

A NodeJS app to watch directories and run PHPUnit tests.

Build Status

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.