aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pom.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index e7a44a92794..00fcd7d2c03 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>