Auto TDD - How to auto-run PHPUnit

Auto TDD

If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!

With the following shell command you can automatically check your test results in every 15 seconds! (under protected/tests)

watch -n 15 -d phpunit unit/

My DEV screen looks something like this (Tests are running on the top-left!)

Auto TDD

Click here to zoom!

ps: of course you can change the time (in seconds) to whatever you'd like ;)

3 0
6 followers
Viewed: 21 066 times
Version: 1.1
Category: Tips
Written by: imehesz
Last updated by: imehesz
Created on: Dec 26, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history

Related Articles