-
Notifications
You must be signed in to change notification settings - Fork 4
/
pom.xml
254 lines (229 loc) · 9.8 KB
/
pom.xml
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.qaload</groupId>
<artifactId>gatling-report-example</artifactId>
<version>0.1.0</version>
<description>Performance tests with different load models and Gatling</description>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<encoding>UTF-8</encoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<gatling.version>3.3.1</gatling.version>
<gatling-plugin.version>3.0.5</gatling-plugin.version>
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
<scala-maven-plugin.version>4.3.0</scala-maven-plugin.version>
<simulation>OpenModel_ConstantUsersPerSec</simulation>
<namespace>io.qaload.gatling.reportExample.simulation</namespace>
<scala.version>2.12.10</scala.version>
<runDescription></runDescription>
</properties>
<dependencies>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>${gatling.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-app</artifactId>
<version>${gatling.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.gatling</groupId>
<artifactId>gatling-recorder</artifactId>
<version>${gatling.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.aeonbits.owner</groupId>
<artifactId>owner</artifactId>
<version>1.0.10</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testSourceDirectory>src/test/scala</testSourceDirectory>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>4.4.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>script</goal>
</goals>
</execution>
</executions>
<configuration>
<script>
println ("Hello from pom script :-)")
</script>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>4.4.0</version>
<executions>
<execution>
<phase>test-compile</phase>
<goals>
<goal>script</goal>
</goals>
</execution>
</executions>
<configuration>
<scriptFile>package.scala</scriptFile>
</configuration>
</plugin>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-plugin.version}</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<!--
A name of a Simulation class to run.
-->
<simulationClass>${namespace}.${simulation}</simulationClass>
<!--
Iterate over multiple simulations if more than one simulation file is found. By default false.
If multiple simulations are found but {runMultipleSimulations} is false the execution will fail.
-->
<runMultipleSimulations>true</runMultipleSimulations>
<!--
List of include patterns to use for scanning. Includes all simulations by default.
-->
<includes>
<include>${namespace}.${simulation}</include>
</includes>
<!--
List of exclude patterns to use for scanning. Excludes none by default.
-->
<excludes>
</excludes>
<!--
Run simulation but does not generate reports. By default false.
-->
<noReports>false</noReports>
<runDescription>${project.groupId}:${project.artifactId} ${namespace}.${simulation} - ${maven.build.timestamp} ${runDescription}</runDescription>
<!--
Will cause the project build to look successful, rather than fail, even
if there are Gatling test failures. This can be useful on a continuous
integration server, if your only option to be able to collect output
files, is if the project builds successfully.
-->
<failOnError>true</failOnError>
<!--
Continue execution of simulations despite assertion failure. If you have
some stack of simulations and you want to get results from all simulations
despite some assertion failures in previous one.
-->
<continueOnAssertionFailure>false</continueOnAssertionFailure>
<useOldJenkinsJUnitSupport>false</useOldJenkinsJUnitSupport>
<!--
Extra JVM arguments to pass when running Gatling.
-->
<jvmArgs>
<jvmArg>-server</jvmArg>
<jvmArg>-Xmx3G</jvmArg>
</jvmArgs>
<!--
Override Gatling's default JVM args, instead of replacing them.
-->
<overrideJvmArgs>false</overrideJvmArgs>
<!--
Propagate System properties to forked processes.
-->
<propagateSystemProperties>true</propagateSystemProperties>
<compilerJvmArgs>
<compilerJvmArg></compilerJvmArg>
</compilerJvmArgs>
<!-- if compiler should be disabled, typically because another plugin has already compiled sources -->
<disableCompiler>false</disableCompiler>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<mainClass>Engine</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/test-jar-with-dependencies.xml</descriptor>
</descriptors>
<archive>
<manifest>
<mainClass>Engine</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>reportOnly</id>
<properties>
<run>test-20191113154848370</run>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<configuration>
<!--
A name of a Simulation class to run.
-->
<simulationClass></simulationClass>
<!--
Generate the reports for the simulation in this folder.
-->
<reportsOnly>${project.build.testOutputDirectory}/${run}/simulation.log</reportsOnly>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>