Skip to content

Commit

Permalink
enable parallel tests via dedicated profile
Browse files Browse the repository at this point in the history
  • Loading branch information
SHildebrandt committed Aug 29, 2024
1 parent 1c40334 commit 6258b60
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,16 @@
</configuration>
</plugin>

<!-- Necessary for Wercker toolchain -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.surefire}</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<trimStackTrace>false</trimStackTrace>
<argLine>-Xmx4g</argLine>
<properties>
<!-- Only execute standard unit tests without tag -->
<groups>none()</groups>
</properties>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -400,15 +401,8 @@

<profile>
<id>all-tests</id>
</profile>

<profile>
<id>regular-tests</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<excludedGroups>random,longRunning</excludedGroups>
<groups>none(),longRunning,random</groups>
</properties>
</profile>

Expand All @@ -425,5 +419,24 @@
<groups>random</groups>
</properties>
</profile>

<profile>
<id>parallel-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx16g</argLine>
<systemPropertyVariables>
<junit.jupiter.execution.parallel.enabled>true</junit.jupiter.execution.parallel.enabled>
<junit.jupiter.execution.parallel.mode.default>concurrent</junit.jupiter.execution.parallel.mode.default>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 6258b60

Please sign in to comment.