aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-02-06 15:57:38 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-02-06 17:59:16 +0100
commit8c464366c208f9b89186649e024ccbf9f792e3f3 (patch)
tree098c919c2d5291ed8171fbf062022e63dd42fc72 /pom.xml
parentb73397a160c4f84702c659bb596394fff9d7fe98 (diff)
downloadsonarqube-8c464366c208f9b89186649e024ccbf9f792e3f3.tar.gz
sonarqube-8c464366c208f9b89186649e024ccbf9f792e3f3.zip
Add the Maven profile "coverage-per-test"
Diffstat (limited to 'pom.xml')
-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>