Marc Hoffmann
unread,Jul 2, 2012, 11:40:07 AM7/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins-jacoco-pl...@googlegroups.com
Hi all,
as the Jenkins plug-in will also show code coverage figures, I would
like to suggest a different presentation: Basically we shouldn't care
about percentage, it's a fruiteless metric that can not be compared. For
example we take to projects with the following code coverage:
A: 80%
B: 30%
Question: Which one has better testing? Let's assume project A is 100
KLOC, project B is 1 KLOC. So in Project A we have 20 KLOC of untested
code, in Project B it's 700 lines only. So the 80% project has a way
higher technical depth.
Therefore native JaCoCo reports show "missed" items (lines, methods,
classes, etc.) and also sort by this criterion. I would recommend to
follow the same principle for the Jenkins plug-in: For example for the
trend graph I would prefer two stacked areas: missed items (red) and
covered items (green), the total high represents the total amount of
items. So if your code base grows over time you get good trend chart
about the amount of total and untested code. From my point of view way
better than any percentage figures.
Just my 2ct,
-marc