News Feed
Jobs Feed
Sections




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

Qafoo Blog:
Testing legacy code
August 02, 2010 @ 09:26:41

On the Qafoo blog today there's a new article talking about testing the one thing that we as developers can fear the most - legacy code.

Today we know about the benefits of Test Driven Development and normally also start new projects using TDD. Most projects from the last couple of years integrated this method in their daily development process, which often results in in good code coverage results of 90% and above. But what about all the other old projects, you still manage in your daily work?

They offer three possible solutions to the problem with the third being their recommended option - adding tests to the code as we have to change it. This can still lead to a code base with less than ideal coverage numbers so they've developed a new tool, PHP_ChangeCoverage, that creates a new kind of report based on a timeframe rather than an overall codebase coerage. You can see an example of the report here (versus this). Installation instructions are also included.

0 comments voice your opinion now!
test unittest legacy code phpchangecoverage phpunit


blog comments powered by Disqus

Similar Posts

Greg Beaver's Blog: Pyrus, PEAR2 and web code coverage report for phpt-based tests

Adam Culp: PHPUnit, Composer, PHPStorm, Oh my!

Sameer Borate's Blog: PHP 5.4.0 in a nutshell

PHPBuilder.com: PHPUnit Fundamentals: Setting Up and Tearing Down a Doctrine 2 Database

SitePoint PHP Blog: pTest: PHP Unit Tester in 9 Lines Of Code


Community Events











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


facebook package hack symfony2 release performance security unittest component introduction podcast series composer language framework install database hhvm application opinion

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