0

When using eCobertura and EclEmma resp. I found the code coverage come out as different in each case for the same project. Interested to know why?

Emma stat EclEmma stat

eCobertura stat

eCobertura stat

R11G
  • 1,941
  • 8
  • 26
  • 37
  • As far as i see eCobertura got statistics not from all application. Are you sure that you run eCobertura on all package, not only on one? – Vartlok Oct 16 '12 at 09:35

2 Answers2

2

One factor may be that EclEmma does not measure coverage correctly for exception handling code - i.e. it may tell you that code is not covered, when in fact it is executed (e.g. if you step through with the debugger, the code is indeed executed). This is a limitation of the underlying JaCoCo library. No idea whether eCobertura has the same issue though.

DNA
  • 42,007
  • 12
  • 107
  • 146
0

In the screenshot you have attached you configure EclEmma to show you the 'instruction counters' but eCobertura shows you lines and branches counters. You can configure EclEmma to show you 'branches counters' and 'line counters'.

Csaba_H
  • 8,215
  • 1
  • 41
  • 42