pom.xml 2.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<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.tests</artifactId>
  <groupId>org.fortiss.af3.product.tests</groupId>
  <packaging>pom</packaging>

  <parent>
    <groupId>org.fortiss.af3.tests</groupId>
    <artifactId>org.fortiss.af3.tests</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <modules>
    <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>
27
28
29
30
31
32
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>Copy-test-product</id>
33
            <phase>integration-test</phase>
34
35
36
37
38
39
40
41
42
43
44
45
46
47
            <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>

48
49
50
51
52
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-surefire-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
53
          <testRuntime>p2Installed</testRuntime>
54
55
56
57
58
59
60
61
62
63
64
65
66
          <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>

67
</project>