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

Testing: Copy config.ini instead of the complete product

parent 03d1acd7
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@ Bundle-Name: Tests Plugin for the Phoenix Product
Bundle-SymbolicName: org.fortiss.af3.phoenix.product.tests
Bundle-Version: 2.14.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: org.junit;bundle-version="4.8.2",
Require-Bundle: org.eclipse.equinox.launcher;bundle-version="1.5.200",
org.junit;bundle-version="4.8.2",
org.fortiss.af3.mira;bundle-version="2.14.0",
org.fortiss.af3.mira.ui;bundle-version="2.14.0",
org.fortiss.af3.state.ui;bundle-version="2.14.0",
......
<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.product.unpack</artifactId>
<groupId>org.fortiss.af3.product.tests</groupId>
<packaging>pom</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>
<version>1.8</version>
<executions>
<execution>
<id>copy-af3-product-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy-af3-product-integration-test-ant">
<echo message="Copy the AF3 product to the integration testing work folder..."/>
<unzip src="${user.dir}/products/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product-${osgiOSClassifier}.${osgiWSClassifier}.${osgiArchClassifier}.zip"
dest="${project.basedir}/../org.fortiss.af3.phoenix.product.tests/target/work/"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -16,7 +16,6 @@
</parent>
<modules>
<module>org.fortiss.af3.product.unpack</module>
<module>org.fortiss.af3.phoenix.product.tests</module>
</modules>
......@@ -25,18 +24,35 @@
pomless build extension. -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>Copy config.ini</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="Config ini copy for testing">
<copy file="${user.dir}/products/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product/${osgiOSClassifier}/${osgiWSClassifier}/${osgiArchClassifier}/AutoFOCUS3/configuration/config.ini"
todir="${project.build.directory}/work/configuration/"/>
</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>-Xms256m -Xmx1024m -Dosgi.framework.extensions=org.eclipse.fx.osgi</argLine>
<work>${project.build.directory}/work/AF3Phoenix/</work>
<includes>
<include>af3/**/AllTests.java</include>
</includes>
......
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