Autotest equivalent for PHP?

I use autotest for unit testing in ruby. Is there an equivalent for PHP that will run my unit tests after updating my code? I am using PHPUnit and Eclipse.

+5
source share
4 answers

You can use watchr to browse your directory and run phpunit whenever the file changes.

http://github.com/mynyml/watchr

+7
source

hot runner phpunit

which is an observer for files and objects

can run tests for modified objects / domains and tests too

+3
source

I use the entrcommand for this kind of task. It receives a list of files and runs the given command when one of the files changes.

Example:

find src test -name "*.php" -type f | entr phpunit

The good thing about entris that it is a language and an agnostic command, I can use it for phpunit, JavaScript unit test, linting, etc. Also, compared to watchrme, I only need to set one instead of ruby ​​runtime.

0
source

All Articles