Clover: how Branch,stmt,Method and Total is calculated?
Does these calculated with respect to LOC or NCLOC?
Please help me in understanding the how the above things are calculated with some sample .java file.
Please note that Clover does not measure code coverage per source line - no matter whether we're talking about LOC or NCLOC. What Clover measures is a code coverage of real code structures, such as branches, statements and methods.
It means that you can see for instance:
You might wonder "how the statement coverage metric provided by Clover relates to the line coverage metric provided by other coverage tools such as Cobertura or EMMA". The answer is:
A single statement can span over several source lines; it is also possible to have several statements in a single source line. Therefore there is no 1:1 mapping between a statement coverage and a line coverage. Nevertheless, both metrics provide a similar granularity of a coverage measurement.
One more thing: in the Clover report you can define your own code metrics; they could include LOC/NCLOC information. See:
We’re excited to invite you to this action-packed webinar where we will demonstrate how to integrate Opsgenie’s powerful alerting and on-call management tools with your entire Atlassian stack. Mar...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs