Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistria2011-11-07 11:56:22 -0500
committermistria2011-11-07 11:56:22 -0500
commita421278320a2b9781cbb04993bbb1f0fe654a15e (patch)
tree0256be64174804f9d92213abb5853a69f0efa1e8
parent641819bbc8512e33a2a4c9515941ede48c942af8 (diff)
downloadorg.eclipse.gmf-tooling-origin.tar.gz
org.eclipse.gmf-tooling-origin.tar.xz
org.eclipse.gmf-tooling-origin.zip
Added code coverage with Jacoco.origin
-rw-r--r--tests/org.eclipse.gmf.tests.lite/pom.xml2
-rw-r--r--tests/org.eclipse.gmf.tests.xpand.migration/pom.xml2
-rw-r--r--tests/org.eclipse.gmf.tests.xpand/pom.xml2
-rw-r--r--tests/org.eclipse.gmf.tests/pom.xml2
-rwxr-xr-xtests/pom.xml38
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

Back to the top