Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Windows XP
-
Testcase included:yes
-
Number of attachments :1
Description
See attached zip with project as a small reproduction of our problem (only 4 modules, for our enterprise application, we have 87).
Several modules with own unit tests and one integration test module without any class in src/main/java.
Since we don't want to have all the standard unit tests run twice, we do sonar in two phases (and it is the recommended way of doing according to Sonar documentation http://docs.codehaus.org/display/SONAR/Collect+data):
- mvn clean install -DskipTests
- mvn --fail-at-end -Dmaven.test.failure.ignore sonar:sonar
In this case, the integration tests are not run.
If we do it in one pass:
- mvn --fail-at-end -Dmaven.test.failure.ignore clean install sonar:sonar
It works and we have all the tests as they are run by the install first, but most of the tests are then run again by sonar (for coverage). In our case, this means having 1h more of build (several thousands tests), which we cannot afford to.
So it would be great to have all the tests (unit and integration) run by sonar even if there are no classes to instrument for coverage in a module.
-
Hide
- SonarUnitTests.zip
- 22/Jun/10 2:42 AM
- 118 kB
- David Nemeshazy
-
- service-client/.classpath 0.6 kB
- service-client/.project 0.6 kB
- service-client/pom.xml 1 kB
- service-client/src/.../ServiceCLIClient.java 1 kB
- service-client/.../oamsbuild-workflow-client.properties 0.7 kB
- service-client/.../oamsbuild-workflow-client.xml 0.9 kB
- service-client/.../oamslog4j-workflow-client.properties 0.8 kB
- service-client/.../oamsworkflow-client.cmd 0.8 kB
- service-client/.../oamsworkflow-client.sh 0.7 kB
- service-client/.../ServiceCLIClientTest.java 0.9 kB
- service-impl/.classpath 0.6 kB
- service-impl/.project 0.6 kB
- service-impl/pom.xml 1 kB
- service-impl/src/.../impl/Service1Impl.java 0.6 kB
- service-impl/src/.../impl/Service2Impl.java 0.5 kB
- service-impl/src/.../Service1ImplTest.java 0.4 kB
- service-impl/src/.../Service2ImplTest.java 0.6 kB
- service-integration-tests/.classpath 0.6 kB
- service-integration-tests/.project 0.6 kB
- service-integration-tests/pom.xml 2 kB
- service-integration-tests/.../IntegrationTests.java 0.8 kB
- service-integration-tests/.../assignee-test.jar 4 kB
- service-integration-tests/.../dailyOutlookSQL.txt 1 kB
- service-integration-tests/.../application-client.xml 0.3 kB
- service-integration-tests/.../MANIFEST.MF 0.2 kB
- service-integration-tests/.../castor.properties 6 kB
- service-integration-tests/.../castor.properties.validation 3 kB
- service-integration-tests/.../jaas.config 0.0 kB
- service-integration-tests/.../mock-orga.xml 0.7 kB
- service-integration-tests/.../openejb.conf 0.4 kB
Issue Links
- relates to
-
SONAR-2392
Combining code coverage results of integration and unit tests for a module
-