This example demonstrates how to collect code coverage by integration tests, tests are located in a separate Java Maven module. SonarQube aggregates code coverage by unit tests and integration tests to compute an overall code coverage.
- SonarQube 5.6+
- Maven 3+
-
Build the project, execute all the tests and analyze the project with SonarQube Scanner for Maven:
mvn clean install sonar:sonar