diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2013-02-25 01:10:40 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-04-26 00:58:09 +0200 |
commit | 2d579ff78957a3e2eef20a07317c1e014df15d15 (patch) | |
tree | 605a2188a66b47e31dab31f66aee4de280c6b622 /pom.xml | |
parent | d8754aa4f4d4126cd44f17d07ec488deb2893a07 (diff) | |
download | jgit-2d579ff78957a3e2eef20a07317c1e014df15d15.tar.gz jgit-2d579ff78957a3e2eef20a07317c1e014df15d15.zip |
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>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -187,6 +187,11 @@ <jetty-version>7.6.14.v20131031</jetty-version> <clirr-version>2.4</clirr-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> <repositories> @@ -341,6 +346,11 @@ <artifactId>tycho-pack200b-plugin</artifactId> <version>0.18.0</version> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.7.0.201403182114</version> + </plugin> </plugins> </pluginManagement> @@ -424,6 +434,27 @@ </execution> </executions> </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> </build> |