]> source.dussan.org Git - sonarqube.git/commitdiff
Add the Maven profile "coverage-per-test"
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 6 Feb 2013 14:57:38 +0000 (15:57 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 6 Feb 2013 16:59:16 +0000 (17:59 +0100)
pom.xml

diff --git a/pom.xml b/pom.xml
index e7a44a9279417a9e3fbd293c2be93a3b53380100..00fcd7d2c0363d3d84e1d3508db637152735cb57 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         </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>