diff options
-rw-r--r-- | pom.xml | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -1301,6 +1301,34 @@ </pluginManagement> </build> </profile> + + <profile> + <id>coverage-per-test</id> + <dependencies> + <dependency> + <groupId>org.codehaus.sonar-plugins.java</groupId> + <artifactId>sonar-jacoco-listeners</artifactId> + <version>${sonarJava.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <properties> + <property> + <name>listener</name> + <value>org.sonar.java.jacoco.JUnitListener</value> + </property> + </properties> + </configuration> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> |