|
202 | 202 | <plugin> |
203 | 203 | <artifactId>maven-surefire-plugin</artifactId> |
204 | 204 | <configuration> |
| 205 | + <forkCount>1</forkCount> |
| 206 | + <reuseForks>false</reuseForks> |
205 | 207 | <argLine>${surefire.argLine}</argLine> |
206 | 208 | <runOrder>alphabetical</runOrder> |
207 | | - <reportFormat>plain</reportFormat> |
208 | | - <excludedGroups>org.apache.activemq.transport.mqtt.ParallelTest</excludedGroups> |
209 | | - <systemPropertyVariables> |
210 | | - <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack> |
211 | | - <org.apache.activemq.AutoFailTestSupport.disableSystemExit>true</org.apache.activemq.AutoFailTestSupport.disableSystemExit> |
212 | | - <org.apache.activemq.broker.jmx.createConnector>false</org.apache.activemq.broker.jmx.createConnector> |
213 | | - <org.apache.activemq.default.directory.prefix>${project.build.directory}/</org.apache.activemq.default.directory.prefix> |
214 | | - </systemPropertyVariables> |
215 | | - <consoleOutputReporter> |
216 | | - <disable>true</disable> |
217 | | - </consoleOutputReporter> |
218 | | - <statelessTestsetInfoReporter |
219 | | - implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter"> |
220 | | - <printStacktraceOnError>true</printStacktraceOnError> |
221 | | - <printStacktraceOnFailure>true</printStacktraceOnFailure> |
222 | | - <printStdoutOnError>true</printStdoutOnError> |
223 | | - <printStdoutOnFailure>true</printStdoutOnFailure> |
224 | | - <printStderrOnError>true</printStderrOnError> |
225 | | - <printStderrOnFailure>true</printStderrOnFailure> |
226 | | - </statelessTestsetInfoReporter> |
227 | | - <excludes> |
228 | | - <exclude>**/PahoMQTNioTTest.java</exclude> |
229 | | - </excludes> |
| 209 | + <systemPropertyValues> |
| 210 | + <org.apache.activemq.default.directory.prefix>target</org.apache.activemq.default.directory.prefix> |
| 211 | + </systemPropertyValues> |
| 212 | + <!-- includes> |
| 213 | + <include>**/*Test.*</include> |
| 214 | + </includes --> |
| 215 | + <excludes> |
| 216 | + <exclude>**/PahoMQTNioTTest.java</exclude> |
| 217 | + </excludes> |
230 | 218 | </configuration> |
231 | | - <executions> |
232 | | - <execution> |
233 | | - <id>parallel</id> |
234 | | - <phase>test</phase> |
235 | | - <goals> |
236 | | - <goal>test</goal> |
237 | | - </goals> |
238 | | - <configuration> |
239 | | - <!-- drop the default excludedGroups --> |
240 | | - <excludedGroups combine.self="override"/> |
241 | | - <groups>org.apache.activemq.transport.mqtt.ParallelTest</groups> |
242 | | - <forkCount>2C</forkCount> |
243 | | - <reuseForks>false</reuseForks> |
244 | | - <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds> |
245 | | - <systemPropertyVariables> |
246 | | - <org.apache.activemq.default.directory.prefix>${project.build.directory}/parallel-tests-${surefire.forkNumber}/</org.apache.activemq.default.directory.prefix> |
247 | | - <!-- when running MQTT tests in parallel in the CI (quite slow) we need to bump the wireformat negotiation timeout (5s by default) --> |
248 | | - <org.apache.activemq.transport.wireFormatNegotiationTimeout>20000</org.apache.activemq.transport.wireFormatNegotiationTimeout> |
249 | | - </systemPropertyVariables> |
250 | | - </configuration> |
251 | | - </execution> |
252 | | - </executions> |
253 | 219 | </plugin> |
254 | | - |
255 | 220 | <plugin> |
256 | 221 | <groupId>org.apache.activemq.protobuf</groupId> |
257 | 222 | <artifactId>activemq-protobuf</artifactId> |
|
329 | 294 | </plugins> |
330 | 295 | </build> |
331 | 296 | </profile> |
| 297 | + <profile> |
| 298 | + <id>parallel-tests</id> |
| 299 | + <activation> |
| 300 | + <property> |
| 301 | + <name>parallel-tests</name> |
| 302 | + </property> |
| 303 | + </activation> |
| 304 | + <build> |
| 305 | + <plugins> |
| 306 | + <plugin> |
| 307 | + <artifactId>maven-surefire-plugin</artifactId> |
| 308 | + <configuration> |
| 309 | + <argLine>${surefire.argLine}</argLine> |
| 310 | + <runOrder>alphabetical</runOrder> |
| 311 | + <reportFormat>plain</reportFormat> |
| 312 | + <excludedGroups>org.apache.activemq.transport.mqtt.ParallelTest</excludedGroups> |
| 313 | + <systemPropertyVariables> |
| 314 | + <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack> |
| 315 | + <org.apache.activemq.AutoFailTestSupport.disableSystemExit>true</org.apache.activemq.AutoFailTestSupport.disableSystemExit> |
| 316 | + <org.apache.activemq.broker.jmx.createConnector>false</org.apache.activemq.broker.jmx.createConnector> |
| 317 | + <org.apache.activemq.default.directory.prefix>${project.build.directory}/</org.apache.activemq.default.directory.prefix> |
| 318 | + </systemPropertyVariables> |
| 319 | + <consoleOutputReporter> |
| 320 | + <disable>true</disable> |
| 321 | + </consoleOutputReporter> |
| 322 | + <statelessTestsetInfoReporter |
| 323 | + implementation="org.apache.maven.plugin.surefire.extensions.junit5.JUnit5StatelessTestsetInfoTreeReporter"> |
| 324 | + <printStacktraceOnError>true</printStacktraceOnError> |
| 325 | + <printStacktraceOnFailure>true</printStacktraceOnFailure> |
| 326 | + <printStdoutOnError>true</printStdoutOnError> |
| 327 | + <printStdoutOnFailure>true</printStdoutOnFailure> |
| 328 | + <printStderrOnError>true</printStderrOnError> |
| 329 | + <printStderrOnFailure>true</printStderrOnFailure> |
| 330 | + </statelessTestsetInfoReporter> |
| 331 | + <excludes> |
| 332 | + <exclude>**/PahoMQTNioTTest.java</exclude> |
| 333 | + </excludes> |
| 334 | + </configuration> |
| 335 | + <executions> |
| 336 | + <execution> |
| 337 | + <id>parallel</id> |
| 338 | + <phase>test</phase> |
| 339 | + <goals> |
| 340 | + <goal>test</goal> |
| 341 | + </goals> |
| 342 | + <configuration> |
| 343 | + <!-- drop the default excludedGroups --> |
| 344 | + <excludedGroups combine.self="override"/> |
| 345 | + <groups>org.apache.activemq.transport.mqtt.ParallelTest</groups> |
| 346 | + <forkCount>2C</forkCount> |
| 347 | + <reuseForks>false</reuseForks> |
| 348 | + <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds> |
| 349 | + <systemPropertyVariables> |
| 350 | + <org.apache.activemq.default.directory.prefix>${project.build.directory}/parallel-tests-${surefire.forkNumber}/</org.apache.activemq.default.directory.prefix> |
| 351 | + <!-- when running MQTT tests in parallel in the CI (quite slow) we need to bump the wireformat negotiation timeout (5s by default) --> |
| 352 | + <org.apache.activemq.transport.wireFormatNegotiationTimeout>20000</org.apache.activemq.transport.wireFormatNegotiationTimeout> |
| 353 | + </systemPropertyVariables> |
| 354 | + </configuration> |
| 355 | + </execution> |
| 356 | + </executions> |
| 357 | + </plugin> |
| 358 | + </plugins> |
| 359 | + </build> |
| 360 | + </profile> |
332 | 361 | </profiles> |
333 | 362 |
|
334 | 363 | <repositories> |
|
0 commit comments