Skip to content

Commit

Permalink
ARTEMIS-4290 Replacing maven-surefire deprecated property forkMode by…
Browse files Browse the repository at this point in the history
… forkCount and reuseFork
  • Loading branch information
clebertsuconic committed May 25, 2023
1 parent b97d711 commit 80e34bf
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>once</forkMode>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks>
<testFailureIgnore>${testFailureIgnore}</testFailureIgnore>
<runOrder>alphabetical</runOrder>
<redirectTestOutputToFile>${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${e2e-tests.skipTests}</skipTests>
<argLine>${e2e-tests.surefire-extra-args} ${activemq-surefire-argline} ${container-service-argline}</argLine>
</configuration>
Expand Down
3 changes: 2 additions & 1 deletion tests/integration-tests-isolated/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${skipIsolatedIntegrationTests}</skipTests>
<argLine>-Djgroups.bind_addr=::1 ${activemq-surefire-argline} ${its-surefire-extra-args} -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="java.lang,javax.security,java.util,org.apache.activemq,org.fusesource.hawtbuf"</argLine>
</configuration>
Expand Down
6 changes: 4 additions & 2 deletions tests/smoke-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${skipSmokeTests}</skipTests>
<argLine>${sts-surefire-extra-args} ${activemq-surefire-argline} ${artemis-distribuiton-lib-dir}</argLine>
</configuration>
Expand Down Expand Up @@ -1350,7 +1351,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<includes combine.children="override">
<include>**/smoke/upgradeTest/*Test.java</include>
</includes>
Expand Down
3 changes: 2 additions & 1 deletion tests/soak-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
<skipTests>${skipSoakTests}</skipTests>
<includes>
<include>**/*Test.java</include>
Expand Down

0 comments on commit 80e34bf

Please sign in to comment.