|Ernesto Guisado's Website » Miscellanea » Code coverage considered harmful?||Articles | Miscellanea ||
Measuring code coverage seems like a fool-proof way of evaluating the quality of your tests
Code coverage measurement is useful. But using it as a target is silly. It is too easy to increase coverage without adding any real value to the tests. Low code coverage in a certain component could indicate a problem with our test case design and as such is useful information. What you need to make sure is that people have access to the information and are given time to act upon it. But don’t ask them for minimum coverage.