News Feed
Sections




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

Zoe Slattery's Blog:
Lateral Thinking
November 14, 2008 @ 11:19:54

When it comes to code coverage and untested parts of your application (unit tested, of course), Zoe Slattery has a suggestion that could make your life easier anyway - follow the core PHP developer's example:

But - there is another way, and as usual the PHP core developers are showing us the way. The fastest way to improve percentage of code covered is to REMOVE UNTESTED CODE! Accordingly we saw the test coverage of PHP 5.3 increase from about 55% to a little over 70% over the summer of 2008. At the same time the lines of code in PHP dropped by about 50KLOC. How can this be?

Removing untested code (that's not needed anyway) can reduce unit testing times dramatically and can help you keep your code clean, lean and simple for the upgrades that will come later on.

0 comments voice your opinion now!
lateral thinking uninttest remove untested simple


blog comments powered by Disqus

Similar Posts

Jonnay\'s Blog: Introducing BunnyRegex - easy regular expressions, and mini-languages inside of PHP.

php|architect: Looking for a simpler MySQL library? Try MeekroDB

DevShed: Emulating a Basic Web Server with Sockets in PHP

Hari KT's Blog: A simple Blog using Zend framework 1.9

Ryan Malesevich's Blog: WP Plugins: iG:Syntax Hiliter


Community Events





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


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

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