This requires that you run your tests once with code coverage analysis turned on, and then simply count the number of blocks (i.e., area blocks) that were covered and compared with the total number of blocks in the tested projects (projects).
The main reason is that if every possible combination of code blocks is covered, all code paths are covered by 1 . The main argument against being too heavy in code coverage numbers is that "light" blocks, such as getters and setters, which do not give real value (and are unlikely to make mistakes ...) count as many more error-prone blocks code.
1) As Ira Baxter noted in the commentary, the previous wording of this proposal was incorrect. Please read the comments to discuss this issue.
Tomas Lycken Jun 16 '10 at 8:08 2010-06-16 08:08
source share