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

CI: Move test recipe to test plugin


* Self-contained version.
* Avoids triggering the build phase of the container module (product
  would be extracted twice).
* Fixes last failers of the CI build.

Signed-off-by: default avatarAlexander Diewald <diewald@fortiss.org>
parent 2dbb0551
No related branches found
No related tags found
No related merge requests found
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>org.fortiss.af3.phoenix.product.tests</artifactId>
<groupId>org.fortiss.af3.phoenix.product.tests</groupId>
<version>2.16.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<parent>
<groupId>org.fortiss.af3.product.tests</groupId>
<artifactId>org.fortiss.af3.product.tests</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<!-- NOTE: The surefire testing spec is placed here (and not in submodules) such that dependencies
of the testing plugin are automatically included via the Manifest.MF file and the
pomless build extension. -->
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>auto-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<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="copy-af3-product-integration-test-ant">
<unzip src="${user.dir}/products/af3/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product-${osgiOSClassifier}.${osgiWSClassifier}.${osgiArchClassifier}.zip"
dest="${project.build.directory}/"/>
<move file="${project.build.directory}/AutoFOCUS3" tofile="${project.build.directory}/work"/>
</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>
<application>org.fortiss.af3.rcp.application.af3app</application>
<argLine>-Dosgi.framework.extensions=org.eclipse.fx.osgi -Xmx2048m -Xss32m</argLine>
<includes>
<include>af3/**/AllTests.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -6,6 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>org.fortiss.af3.product.tests</artifactId>
<groupId>org.fortiss.af3.product.tests</groupId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<parent>
......@@ -19,48 +20,4 @@
<module>org.fortiss.af3.phoenix.product.tests</module>
</modules>
<!-- NOTE: The surefire testing spec is placed here (and not in submodules) such that dependencies
of the testing plugin are automatically included via the Manifest.MF file and the
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>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy-af3-product-integration-test-ant">
<unzip src="${user.dir}/products/af3/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product-${osgiOSClassifier}.${osgiWSClassifier}.${osgiArchClassifier}.zip"
dest="${project.build.directory}/work/"/>
</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>
<application>org.fortiss.af3.rcp.application.af3app</application>
<argLine>-Dosgi.framework.extensions=org.eclipse.fx.osgi -Xmx2048m -Xss32m</argLine>
<includes>
<include>af3/**/AllTests.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
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