Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f8bba893763e8fb3a1c953a980a6178eee8b1aae (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<project
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.eclipse.papyrus</groupId>
		<artifactId>org.eclipse.papyrus.tests.releng</artifactId>
		<version>1.2.0-SNAPSHOT</version>
		<relativePath>../../../../releng/main-tests/pom.xml</relativePath>
	</parent>
	<groupId>org.eclipse.papyrus.tests</groupId>
	<artifactId>org.eclipse.papyrus.tests</artifactId>
	<version>1.2.200-SNAPSHOT</version>
	<packaging>eclipse-test-plugin</packaging>
	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-surefire-plugin</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<useUIHarness>true</useUIHarness>
					<useUIThread>true</useUIThread>
					<testFailureIgnore>true</testFailureIgnore>
					<product>org.eclipse.sdk.ide</product>
					<!-- If a specific <argLine> is required here, make sure to include JaCoCo parameters (See parent pom, Bug 478170) -->
					<skipTests>true</skipTests>
					<testClass>org.eclipse.papyrus.tests.AllTests</testClass>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>target-platform-configuration</artifactId>
				<version>${tycho-version}</version>
				<configuration>
					<dependency-resolution>
						<extraRequirements>
							<requirement>
								<type>p2-installable-unit</type>
								<id>org.eclipse.sdk.feature.group</id>
								<versionRange>0.0.0</versionRange>
							</requirement>
							<requirement>
								<type>eclipse-feature</type>
								<id>org.eclipse.papyrus.sdk.feature</id>
								<versionRange>0.0.0</versionRange>
							</requirement>
						</extraRequirements>
					</dependency-resolution>
				</configuration>
			</plugin>
		</plugins>
	</build>
	
	<profiles>
		<profile>
  			<id>exec-gen-tests</id>
	  		<activation>
	  			<!-- Activate this profile when running generated tests. --> 
				<property>
					<name>testConfig</name>
					<value>GENERATED_TESTS_CONFIG</value>
				</property>
	  		</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.eclipse.tycho</groupId>
						<artifactId>tycho-surefire-plugin</artifactId>
						<version>${tycho-version}</version>
						<configuration>
							<useUIHarness>true</useUIHarness>
							<useUIThread>true</useUIThread>
							<testFailureIgnore>true</testFailureIgnore>
							<argLine>-Xms512m -Xmx2048m -XX:MaxPermSize=512M -XX:SoftRefLRUPolicyMSPerMB=100</argLine>
							<appArgLine>-testConfig=${testConfig}</appArgLine>
							<product>org.eclipse.sdk.ide</product>
						</configuration>
						<executions>
							<execution>
								<id>suite1</id>
								<phase>integration-test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<!-- Don't put skipTests in the common section because that
									     would then also apply to the default execution, above -->
									<skipTests>false</skipTests>
									<testClass>org.eclipse.papyrus.tests.AllGenTests$Suite1</testClass>
								</configuration>
							</execution>
							<execution>
								<id>suite2</id>
								<phase>integration-test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<!-- Don't put skipTests in the common section because that
									     would then also apply to the default execution, above -->
									<skipTests>false</skipTests>
									<testClass>org.eclipse.papyrus.tests.AllGenTests$Suite2</testClass>
								</configuration>
							</execution>
							<execution>
								<id>suite3</id>
								<phase>integration-test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<!-- Don't put skipTests in the common section because that
									     would then also apply to the default execution, above -->
									<skipTests>false</skipTests>
									<testClass>org.eclipse.papyrus.tests.AllGenTests$Suite3</testClass>
								</configuration>
							</execution>
							<execution>
								<id>suite4</id>
								<phase>integration-test</phase>
								<goals>
									<goal>test</goal>
								</goals>
								<configuration>
									<!-- Don't put skipTests in the common section because that
									     would then also apply to the default execution, above -->
									<skipTests>false</skipTests>
									<testClass>org.eclipse.papyrus.tests.AllGenTests$Suite4</testClass>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>

Back to the top