diff options
-rw-r--r-- | tests/org.eclipse.gmf.tests.lite/pom.xml | 2 | ||||
-rw-r--r-- | tests/org.eclipse.gmf.tests.xpand.migration/pom.xml | 2 | ||||
-rw-r--r-- | tests/org.eclipse.gmf.tests.xpand/pom.xml | 2 | ||||
-rw-r--r-- | tests/org.eclipse.gmf.tests/pom.xml | 2 | ||||
-rwxr-xr-x | tests/pom.xml | 38 |
5 files changed, 42 insertions, 4 deletions
diff --git a/tests/org.eclipse.gmf.tests.lite/pom.xml b/tests/org.eclipse.gmf.tests.lite/pom.xml index 31891eca7..41c7d2f11 100644 --- a/tests/org.eclipse.gmf.tests.lite/pom.xml +++ b/tests/org.eclipse.gmf.tests.lite/pom.xml @@ -32,7 +32,7 @@ <configuration> <testSuite>org.eclipse.gmf.tests</testSuite> <testClass>org.eclipse.gmf.tests.AllTests</testClass> - <argLine>-Xmx512m</argLine> + <argLine>${tycho.testArgLine} -Xmx512m</argLine> <bundleStartLevel> <bundle> <id>org.eclipse.equinox.ds</id> diff --git a/tests/org.eclipse.gmf.tests.xpand.migration/pom.xml b/tests/org.eclipse.gmf.tests.xpand.migration/pom.xml index a298347b7..697d6059d 100644 --- a/tests/org.eclipse.gmf.tests.xpand.migration/pom.xml +++ b/tests/org.eclipse.gmf.tests.xpand.migration/pom.xml @@ -32,7 +32,7 @@ <configuration> <testSuite>org.eclipse.gmf.tests</testSuite> <testClass>org.eclipse.gmf.tests.AllTests</testClass> - <argLine>-Xmx512m</argLine> + <argLine>${tycho.testArgLine} -Xmx512m</argLine> <bundleStartLevel> <bundle> <id>org.eclipse.equinox.ds</id> diff --git a/tests/org.eclipse.gmf.tests.xpand/pom.xml b/tests/org.eclipse.gmf.tests.xpand/pom.xml index 7a7a855cd..d815b336d 100644 --- a/tests/org.eclipse.gmf.tests.xpand/pom.xml +++ b/tests/org.eclipse.gmf.tests.xpand/pom.xml @@ -32,7 +32,7 @@ <configuration> <testSuite>org.eclipse.gmf.tests</testSuite> <testClass>org.eclipse.gmf.tests.AllTests</testClass> - <argLine>-Xmx512m</argLine> + <argLine>${tycho.testArgLine} -Xmx512m</argLine> <bundleStartLevel> <bundle> <id>org.eclipse.equinox.ds</id> diff --git a/tests/org.eclipse.gmf.tests/pom.xml b/tests/org.eclipse.gmf.tests/pom.xml index 866358193..cdf0f7bb5 100644 --- a/tests/org.eclipse.gmf.tests/pom.xml +++ b/tests/org.eclipse.gmf.tests/pom.xml @@ -34,7 +34,7 @@ <testClass>org.eclipse.gmf.tests.AllTests</testClass> <useUIHarness>true</useUIHarness> <useUIThread>true</useUIThread> - <argLine>-Xmx512m -XX:MaxPermSize=128m -DbuildingWithTycho=true</argLine> + <argLine>${tycho.testArgLine} -Xmx512m -XX:MaxPermSize=128m -DbuildingWithTycho=true</argLine> <bundleStartLevel> <bundle> <id>org.eclipse.equinox.ds</id> 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 |