Skip to content
Snippets Groups Projects
Commit 1c0e3b81 authored by Markus Alexander Kuppe's avatar Markus Alexander Kuppe
Browse files

Collect coverage information for Toolbox (UI) tests.

Based on
http://www.eclipsophy.com/2014/01/tychojunitjacoco-for-industrial-sql.html
all coverage information has to be aggregated into a single jacoco.exec
file though if results should go to SonarQube.

[Build]
parent 2d6d814b
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,22 @@
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>target/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Pro tip for Linux developers: Use a different display for UI tests -->
<!-- Known eclipse defect -->
<plugin>
......@@ -69,7 +85,7 @@
<showEclipseLog>true</showEclipseLog>
<useUIHarness>true</useUIHarness>
<useUIThread>${tycho.test.vm.useUiThread}</useUIThread>
<argLine>${tycho.test.vm.argline}</argLine>
<argLine>${tycho.test.vm.argline} ${tycho.testArgLine}</argLine>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
......
......@@ -20,6 +20,22 @@
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>target/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run JUnit tests -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
......@@ -30,7 +46,7 @@
<showEclipseLog>true</showEclipseLog>
<useUIHarness>true</useUIHarness>
<useUIThread>${tycho.test.vm.useUiThread}</useUIThread>
<argLine>${tycho.test.vm.argline}</argLine>
<argLine>${tycho.test.vm.argline} ${tycho.testArgLine}</argLine>
<!-- use our product and application to launch the tests -->
<product>org.lamport.tla.toolbox.product.standalone.product</product>
<application>org.lamport.tla.toolbox.application</application>
......
......@@ -20,6 +20,22 @@
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>target/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run JUnit tests -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
......@@ -30,7 +46,7 @@
<showEclipseLog>true</showEclipseLog>
<useUIHarness>true</useUIHarness>
<useUIThread>${tycho.test.vm.useUiThread}</useUIThread>
<argLine>${tycho.test.vm.argline}</argLine>
<argLine>${tycho.test.vm.argline} ${tycho.testArgLine}</argLine>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
......
......@@ -20,6 +20,22 @@
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>target/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run JUnit tests -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
......@@ -30,7 +46,7 @@
<showEclipseLog>true</showEclipseLog>
<useUIHarness>true</useUIHarness>
<useUIThread>${tycho.test.vm.useUiThread}</useUIThread>
<argLine>${tycho.test.vm.argline}</argLine>
<argLine>${tycho.test.vm.argline} ${tycho.testArgLine}</argLine>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
......
......@@ -21,6 +21,22 @@
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>target/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Run JUnit tests -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
......@@ -31,7 +47,7 @@
<showEclipseLog>true</showEclipseLog>
<useUIHarness>true</useUIHarness>
<useUIThread>${tycho.test.vm.useUiThread}</useUIThread>
<argLine>${tycho.test.vm.argline}</argLine>
<argLine>${tycho.test.vm.argline} ${tycho.testArgLine}</argLine>
<!-- use our product and application to launch the tests -->
<product>org.lamport.tla.toolbox.product.standalone.product</product>
<application>org.lamport.tla.toolbox.application</application>
......
......@@ -36,6 +36,22 @@
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<!-- Where to put jacoco coverage report -->
<destFile>target/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>
<!-- Compile java sources and exclude aspects -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
......@@ -75,7 +91,7 @@
<showEclipseLog>true</showEclipseLog>
<useUIHarness>true</useUIHarness>
<useUIThread>${tycho.test.vm.useUiThread}</useUIThread>
<argLine>${tycho.test.vm.argline}</argLine>
<argLine>${tycho.test.vm.argline} ${tycho.testArgLine}</argLine>
<!-- use our product and application to launch the tests -->
<product>org.lamport.tla.toolbox.product.standalone.product</product>
<application>org.lamport.tla.toolbox.application</application>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment