Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.0.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Consider following case: multi-module project, modules A and B, module B has some tests for module A. When running Sonar Clover plugin two goals of Maven Clover plugin are run - instrument and clover. Cause of bug in Maven http://jira.codehaus.org/browse/MNG-2184 (4 years old), here's actual execution order:
- module A instrument
- module A clover
- module B instrument
- module B clover
while the correct one should be:
- module A instrument
- module B instrument
- module A clover
- module B clover
Cause of that bug, we are losing information, that tests from module B covered some code in module A.
Sonar Clover plugin should use goal aggregate.
Issue Links
- depends upon
-
SONAR-2392
Combining code coverage results of integration and unit tests for a module
-
Hi Marcin, this is definitely not a bug but a missing feature (see SONAR-613). Code coverage is calculated only inside a module but Sonar doesn't currently allow to aggregate code coverage across multiple-modules with Cobertura or Clover.
I'm closing this ticket and you can watch SONAR-613.