Added code coverage with Jacoco.
diff --git a/tests/org.eclipse.gmf.tests.lite/pom.xml b/tests/org.eclipse.gmf.tests.lite/pom.xml
index 31891ec..41c7d2f 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 a298347..697d605 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 7a7a855..d815b33 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 8663581..cdf0f7b 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 831423c..7c892f3 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