Skip to content

Commit

Permalink
Disable parallel test execution for JUnit 5 for Java 21: We had probl…
Browse files Browse the repository at this point in the history
…ems in some modules with ThreadsafeMockAdapterManagerWrapper not working properly on GitHub runners.
  • Loading branch information
stefanseifert committed Nov 8, 2023
1 parent d83c1db commit 91a5990
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<action type="update" dev="sseifert">
Update testing dependencies.
</action>
<action type="update" dev="sseifert">
Disable parallel test execution for JUnit 5 for Java 21: We had problems in some modules with ThreadsafeMockAdapterManagerWrapper not working properly on GitHub runners.
</action>
</release>

<release version="2.2.2" date="2023-09-04">
Expand Down
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@
</reporting>

<profiles>

<!-- profile used for building releases and deployment to sonatype/maven central -->
<profile>
<id>release-profile</id>
Expand Down Expand Up @@ -494,6 +495,32 @@
</plugins>
</build>
</profile>

<!-- Disable parallel test execution for JUnit 5 for Java 21: We had problems in some modules with ThreadsafeMockAdapterManagerWrapper not working properly on GitHub runners -->
<profile>
<id>disable-junit5-parallel-test-execution-java21</id>
<activation>
<jdk>21</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<properties>
<configurationParameters>
junit.jupiter.execution.parallel.enabled = false
</configurationParameters>
</properties>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>

</profiles>

<distributionManagement>
Expand Down

0 comments on commit 91a5990

Please sign in to comment.