Browse Source

Add jacoco instrumentation for code coverage reports

See http://mickaelistria.wordpress.com/2012/10/08/sonar-at-eclipse-org/

Change-Id: Idd7df8125e0792e9bba924eadbc1320230cfa624
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-3.4
Matthias Sohn 12 years ago
parent
commit
2d579ff789
  1. 31
      pom.xml

31
pom.xml

@ -187,6 +187,11 @@
<jetty-version>7.6.14.v20131031</jetty-version> <jetty-version>7.6.14.v20131031</jetty-version>
<clirr-version>2.4</clirr-version> <clirr-version>2.4</clirr-version>
<httpclient-version>4.1.3</httpclient-version> <httpclient-version>4.1.3</httpclient-version>
<!-- Properties to enable jacoco code coverage analysis -->
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.reportPath>../target/jacoco.exec</sonar.jacoco.reportPath>
</properties> </properties>
<repositories> <repositories>
@ -341,6 +346,11 @@
<artifactId>tycho-pack200b-plugin</artifactId> <artifactId>tycho-pack200b-plugin</artifactId>
<version>0.18.0</version> <version>0.18.0</version>
</plugin> </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.0.201403182114</version>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
@ -424,6 +434,27 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>${sonar.jacoco.reportPath}</destFile>
<includes>
<include>org.eclipse.jgit.*</include>
</includes>
<excludes>
<exclude>**/*Test*.*</exclude>
</excludes>
<append>true</append>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>

Loading…
Cancel
Save