qwertzy00 / coverstory

Automatically exported from code.google.com/p/coverstory
Apache License 2.0
0 stars 0 forks source link

Enhancement: branch coverage and condition coverage #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you call gcov with "gcov -b -c", it provides enough information that you
can measure both branch and condition coverage. It would be really nice if
CoverStory handled them also.

(If you do work on this, the current versions of gcov and gcc have a couple
of bugs related to handling @throw and @try / @catch blocks.)

As an example of the value, when I got my target program to 100% feasible
line coverage, I still had only about 90% branch coverage and about 85%
condition coverage. In improving those, I found two corner case bugs. Not
high impact bugs, but still they would have bothered me.

Original issue reported on code.google.com by j...@xorandor.com on 10 Sep 2009 at 1:45

GoogleCodeExporter commented 9 years ago
Would really love to see this. One idea might be to model it after the Python 
code coverage tool "Coverage.py" 
http://nedbatchelder.com/code/coverage/branch.html. It uses yellow to mean 
"partial coverage", and in the extreme right margin puts the line number of the 
branch taken 0 times, like this:

Original comment by charleyk...@gmail.com on 5 Apr 2012 at 11:48

Attachments: