I have a projet composed of numerous modules. I am running both JaCoCo for unit tests coverage and Sonar for code quality.
For a technical reason, I can't use JaCoCo reports for one of my modules (GWT erases the target
folder and I couldn't go past this issue yet).
Let's say I have 8 modules, from 1 to 8. One of them is for domain objects only, so I don't want to cover it with my tests. Same goes for another one, dedicated for auto-generated classes.
JaCoCo runs on 5 modules, and Sonar on 6 modules.
The total instructions shown by JaCoCo is 145k.
Sonar shows a total of 75k LOC.
Aren't they quite the same ? Did I miss something ? Is JaCoCo taking in account the whole project whatever reports I feed him ? What can possibly explain this gap in measurement ?