Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.3
-
Component/s: Code Coverage
-
Labels:None
-
Environment:N/a - happens on all environments
-
Number of attachments :
Description
It would be excellent to have the integration tests for a component included along with the unit tests in the overall code coverage report for a module.
For example, a typical Maven 2 project may be
mycomponent
mycomponent-integration-tests
Sonar could generate the combined report for the mycomponent module in one of two ways:
1. Run Cobertura on mycomponent unit tests with Cobertura - this will produce a cobertura.ser file in the mycomponent/target/cobertura directory.
2. Run the mycomponent-integration-tests integration tests with Cobertura- this will produce a cobertura.ser file in the mycomponent-integration-tests/target/cobertura directory.
3. Amalgamate the two cobertura.ser files
4.Generate the code coverage report for the mycomponent module from the amalgamated cobertura.ser file.
OR
1. Run Cobertura on mycomponent unit tests with Cobertura - this will produce a cobertura.ser file in the mycomponent/target/cobertura directory.
2. Run the mycomponent-integration-tests integration tests with Cobertura, having the results being written to the cobertura.ser file in mycomponent/target/cobertura
3. Generate the code coverage report for the mycomponent module from the cobertura.ser in mycomponent/target/cobertura.
Issue Links
- is depended upon by
-
SONAR-1540
Possible wrong coverage for multi-module projects
-
- is duplicated by
-
SONAR-1027
Clover does not run for integration test modules
-
- is related to
-
SONARPLUGINS-1111
Sonar does not produce aggregate code coverage results when using Clover in multi-module Maven projects
-
-
SONARPLUGINS-602
Extend plugin to process coverage information on integration tests
-
-
SONARJAVA-107
In multi-module project, integration tests are not run if no classes present in src/main/java of integration tests module
-
-
SONAR-2804
JaCoCo : Offer way to merge code-coverage unit vs. it-tests
-
- relates to
-
SONARPLUGINS-138
New metrics on integration tests
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 1.5.1 [ 14806 ] | |
| Fix Version/s | 1.6 [ 14623 ] |
| Assignee | Freddy Mallet [ freddy.mallet ] |
| Link | This issue relates to SONAR-316 [ SONAR-316 ] |
| Link |
This issue is duplicated by |
| Component/s | Surefire [ 13922 ] | |
| Component/s | Metrics [ 13103 ] | |
| Component/s | Cobertura [ 13873 ] | |
| Component/s | Clover [ 13872 ] |
| Link |
This issue is depended upon by |
| Link | This issue is related to SONAR-1613 [ SONAR-1613 ] |
| Component/s | Integration Test [ 14488 ] |
| Link | This issue is related to SONAR-1633 [ SONAR-1633 ] |
| Link |
This issue is related to |
| Project | Sonar [ 11694 ] | Sonar Plugins [ 11911 ] |
| Key | SONAR-613 | SONARPLUGINS-1113 |
| Component/s | Clover [ 14643 ] | |
| Component/s | Clover [ 13872 ] | |
| Component/s | Cobertura [ 13873 ] | |
| Component/s | Surefire [ 13922 ] | |
| Component/s | Integration Test [ 14488 ] |
| Project | Sonar Plugins [ 11911 ] | Sonar [ 11694 ] |
| Key | SONARPLUGINS-1113 |
|
| Component/s | Code Coverage [ 14711 ] | |
| Component/s | Clover [ 14643 ] |
| Fix Version/s | 3.3 [ 18520 ] |
| Link |
This issue is related to |
| Fix Version/s | 3.3 [ 18520 ] |
| Assignee | David Gageot [ dgageot ] | |
| Fix Version/s | 3.3 [ 18520 ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Assignee | David Gageot [ dgageot ] | Freddy Mallet [ freddy.mallet ] |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |