News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

AppBackr Blog:
Automated PHP unit testing for lazy coders
August 02, 2011 @ 10:41:59

In a recent post from the AppBackr blog they share a solution they've found for running unit tests automatically for lazy coders using a combination of PHPUnit, Watchr and Growl notifications (OS X-only, obviously).

Now you could run [your] tests manually after each change by typing 'phpunit ', but we were looking for something a little more comfortable. We want to decrease the transactional cost of running the tests as much as possible to make the lives of our engineers more pleasant. Making testing easy is the only way the engineers will run the tests frequently.

Instead they opted for Watchr, a tool that keeps an eye on a list of files looking for a change. When one happens, a process is fired off - in this case a PHPUnit run. To make it even easier to see feedback, they integrated it with Growl to show pass or fail results. He includes the source for his Watchr script to help you get started.

0 comments voice your opinion now!
unittest watchr growl notification yii framework


blog comments powered by Disqus

Similar Posts

Flyn San: Creating a Basic ToDo Application With Laravel 4 (Tutorial Series)

PHPMaster.com: Bulletproofing Database Interactions with PHPUnit's Database Extension

Atlanta PHP Users Group: April 2006 Meeting - 6th @ 7pm

Zend Developer Zone: PHP Abstract Podcast Episode 19: Glue Frameworks vs. Full Stack Frameworks

Jonathan Snook's Blog: Creating a Contact Form in CakePHP 1.2


Community Events





Don't see your event here?
Let us know!


tips bugfix library zendserver community framework deployment laravel api voicesoftheelephpant list podcast introduction developer symfony language series release conference interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework