views:

203

answers:

2

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

+2  A: 

You could use watchr to watch your directory and run phpunit whenever a file changes.

http://github.com/mynyml/watchr

Here's a quick script I wrote, you can customize it to your own directory structure: http://gist.github.com/287950
A: 

I needed a quick hack for my Zend Framework application and PHPUnit, and I also used watchr.

Here are the details: http://exviva.posterous.com/autotest-like-phpunit-runner-for-a-zend-frame. Hope you'll find it useful.

Olek