News Feed
Sections




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

Marco Tabini's Blog:
The easiest way to add unit test to your application
September 09, 2011 @ 09:17:32

In a new post to his blog Marco Tabini offers some suggestions on unit testing - not really a tutorial on how to it, more of an "easy way in" to introducing it to your development process.

Stopping development for weeks while you figure out how to add unit tests to cover your entire codebase is simply something that cannot be done (at least, not if you want to keep your job), no matter what future benefits it might bring. The good news is, adding unit testing to your existing project only takes five minutes - which is pretty much how long it takes to get a unit testing framework installed. That's it. Move on.

He puts the emphasis on unit testing to manage change in a code base, not so much to ensure that the current application runs as it should (not initially at least). He's found them most useful in bugfixing, refactoring and when adding new functionality. Current tests (and even tests written in TDD) can help with all of these. He includes reminders that if the tests aren't written well, they're useless and that once you've started testing, it needs to be continuous, even if they're not perfect.

0 comments voice your opinion now!
unittest opinion application bugfix improvement refactoring


blog comments powered by Disqus

Similar Posts

Knut Urdalen's Blog: Try Yii Framework for your next large-scale web 2.0 application...

Mike Lively's Blog: Why I Hate Singletons

Alexey Zakhlestin's Blog: PHP+SCGI part 2: problem with eZComponents

JSLabs Blog: 5 tips for creating high performance web apps

Zend Developer Zone: PHP Security Tip #19 (Securing Your Connection)


Community Events





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


install list refactor wordpress community threedevsandamaybe configure series code language podcast release opinion framework developer laravel unittest introduction interview testing

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