Skip to content
Snippets Groups Projects
Commit 0d131507 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

CI: Use the built product for integration tests


Only by copying the produced product and setting the test configuration
to "p2Installed", the efxclipse osgi extensions are activated on
startup. This is required to get JavaFX up and running. Due to a recent
code modification, JFX code is already loaded during startup such that
JavaFX is now also need.
The absence of JavaFX was not noticed before since no JFX classes were
loaded by kernel services, nor did any test require them.
In addition to fixing the initial bug, we are also testing the produced
build now and not only a subset.

Signed-off-by: default avatarAlexander Diewald <diewald@fortiss.org>
parent 6f326e3d
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,33 @@
pomless build extension. -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>Copy-test-product</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="Config product for testing">
<copy todir="${project.build.directory}/work/">
<fileset dir="${user.dir}/products/af3/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product/${osgiOSClassifier}/${osgiWSClassifier}/${osgiArchClassifier}/AutoFOCUS3/"/>
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<testRuntime>p2Installed</testRuntime>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<product>org.fortiss.af3.rcp.application.product</product>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment