News Feed
Sections




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

Anna Filina:
Full Test Coverage is Impractical
May 23, 2013 @ 12:06:34

In her latest post Anna Filina proposes that full test coverage is an impractical way to measure the quality of your software. It can provide a false sense of security, even if the tests are poorly written.

Many developers claim that to achieve high quality software, developers must create automated tests that ensure that all possible execution routes have been covered. This is also known as full path coverage. I will argue that different types of software require different testing approaches and that full path coverage is impractical in almost every case. Too many tests simply create clutter.

She looks at how it's impractical to expect that all tests will be written efficiently or even correctly. Even simple tests are enough to show up on code coverage reports but may only be painting part of the picture. She also notes that not all software can be tested the same way - things like APIs require different testing skills/methods than something like consumer software.

In the end, there are no exact rules on how much to test. The most important thing to keep in mind is that writing tests for the sake writing tests is futile and costly. [...] Focus on building great software. Tests are a tool to make it better. Just don't overdo it.
0 comments voice your opinion now!
full testing codecoverage quality software impractical opinion

Link: http://annafilina.com/blog/full-test-impractical

blog comments powered by Disqus

Similar Posts

Greg Beaver's Blog: Code Coverage Reporting using PEAR, PEAR2, phar, and sqlite3

Chris Hartjes' Blog: Metatesting: Testing Constructors

Jens Schauder's Blog: One Database for Every Developer

Michelangelo van Dam's Blog: Quality Assurance on PHP projects - PHPDocumentor

Ibuildings Blog: Supporting a PHP migration


Community Events





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


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

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