Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pom.xml')
-rwxr-xr-xtests/pom.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/pom.xml b/tests/pom.xml
index 831423c2b..7c892f37f 100755
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -29,5 +29,43 @@
<module>org.eclipse.gmf.tests.xpand</module>
<module>org.eclipse.gmf.tests.xpand.migration</module>
</modules>
+
+ <profiles>
+ <profile>
+ <id>jacoco</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <!-- Properties to enable jacoco code coverage analysis -->
+ <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
+ <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+ <sonar.jacoco.itReportPath>../target/jacoco.exec</sonar.jacoco.itReportPath>
+ </properties>
+ <build>
+ <plugins>
+ <!-- Enabling use of jacoco -->
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.5.3.201107060350</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ <configuration>
+ <!-- Where to put jacoco coverage report -->
+ <destFile>${sonar.jacoco.itReportPath}</destFile>
+ <includes>*.gmf.*</includes>
+ <append>true</append>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project> \ No newline at end of file

Back to the top