Skip to content

Commit

Permalink
Parallelize unit and integration tests (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok authored Mar 16, 2024
1 parent a3e1185 commit 3dee508
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
24 changes: 23 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</formats>
<java>
<palantirJavaFormat>
<version>2.39.0</version>
<version>2.41.0</version>
</palantirJavaFormat>
</java>
<kotlin>
Expand Down Expand Up @@ -262,6 +262,19 @@
<version>3.2.5</version>
<configuration>
<skipTests>${skipUnits}</skipTests>
<forkCount>1</forkCount>
<properties>
<configurationParameters>
junit.jupiter.testinstance.lifecycle.default=per_class
junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$Random
junit.jupiter.testmethod.order.default=org.junit.jupiter.api.MethodOrderer$Random
junit.jupiter.execution.parallel.enabled=true
junit.jupiter.execution.parallel.mode.default=same_thread
junit.jupiter.execution.parallel.mode.classes.default=concurrent
junit.jupiter.execution.parallel.config.strategy=fixed
junit.jupiter.execution.parallel.config.fixed.parallelism=2
</configurationParameters>
</properties>
</configuration>
</plugin>
<plugin>
Expand All @@ -280,6 +293,15 @@
<version>3.2.5</version>
<configuration>
<skipITs>${skipTests}</skipITs>
<forkCount>2</forkCount>
<properties>
<configurationParameters>
junit.jupiter.testinstance.lifecycle.default=per_class
junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$Random
junit.jupiter.testmethod.order.default=org.junit.jupiter.api.MethodOrderer$Random
junit.jupiter.execution.parallel.enabled=false
</configurationParameters>
</properties>
</configuration>
<executions>
<execution>
Expand Down
6 changes: 2 additions & 4 deletions test/e2e/src/test/resources/junit-platform.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
junit.jupiter.extensions.autodetection.enabled = true
junit.jupiter.testinstance.lifecycle.default = per_class
junit.jupiter.testclass.order.default = org.junit.jupiter.api.ClassOrderer$Random
junit.jupiter.testmethod.order.default = org.junit.jupiter.api.MethodOrderer$Random
junit.jupiter.extensions.autodetection.enabled=true
junit.jupiter.execution.parallel.enabled=false

0 comments on commit 3dee508

Please sign in to comment.