Understanding the jacoco report

This is a sample jacoco report for a class. I want to understand what these column values ​​mean and what do the M and C in each column mean? In addition, it is the appropriate column for checking the correct coverage for a given class and its methods. Do I have to go with an instruction or line cover? What is the ideal percentage of coverage for a class?


Linear complexity method for name branches


constructor_name M: 0 C: 4 (100%) M: 0 C: 0 0% M: 0 C: 1 100% M: 0 C: 2 100% M: 0 C: 1 100% module_name M: 0 C: 52 (100%) M: 0 C: 2 100% M: 0 C: 2 100% M: 0 C: 9 100% M: 0 C: 1 100%

Note. I was unable to upload the image as I did not have sufficient reputation.

+3


source to share


1 answer


As you can see in the following image:

enter image description here

You have: coverage, covered lines, missing lines, and general lines.



I suggest you use the eclipse plugin to render the jacoco report.

Hope it helps!

+1


source







All Articles