News Feed
Sections




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

NetTuts.com:
Automatic Testing for TDD with PHP
August 24, 2012 @ 09:09:04

If you practice the TDD (test-driven development) methodology in your work, you know that sometimes switching back and forth between a terminal and your IDE can be distracting. In this new tutorial from NetTuts.com, they show you how to streamline things a bit with a simple Ruby script.

Traditional test-driven development can, at times, be cumbersome. You have to stop writing code in order to run your tests. Luckily, there are solutions, which provide the ability to automatically run your tests as you code. In this tutorial, you will learn how to use a Ruby gem, called watchr, to monitor your code and automatically run the appropriate tests whenever you save your work.

The IDE doesn't matter in this case because the "watchr" tool keeps an eye on when things change in the watched directory and automatically fires off a script when it sees an update. They include the few short lines of Ruby to make it all happen and even have the "notify-send" command built in to give you a popup about the pass/fail status.

0 comments voice your opinion now!
automatic testing tdd ruby watchr popup execute


blog comments powered by Disqus

Similar Posts

KillerPHP.com: Will Ruby kill PHP?

Ed Eliot's Blog: Automatic merging and versioning of CSS/JS files with PHP

Andrew Podner: Functional Testing to Improve Quality Assurance (part 1)

Amir Saied's Blog: Book review: "Pro PHP: Patterns, Frameworks, Testing and More" by Kevin McArthur

Chris Shiflett\'s Blog: JApacheCon (Power PHP Testing talk)


Community Events





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


symfony framework tool introduction community release interview composer language library podcast artisanfiles voicesoftheelephpant series version opinion security conference laravel list

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