I use the Cobertura Maven plugin for one of my project. But I have a question about the generated report:
What is the difference between line and branch coverage?
Take this code as a simplified example:
if(cond) {
line1();
line2();
line3();
line4();
} else {
line5();
}
If your test only exercises the cond being true and never runs the else branch you have:
Also Cobertura report itself introduces some nice pop-up help tooltips when column header is clicked:
Line Coverage - The percent of lines executed by this test run.
Branch Coverage - The percent of branches executed by this test run.