Skip to content

Commit d7f3d1f

Browse files
committed
Set maxParallelForks for tests based on available processors
1 parent ae5e826 commit d7f3d1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ allprojects {
8181
options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
8282
}
8383
tasks.withType<Test>().configureEach {
84+
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).takeIf { it > 0 } ?: 1
8485
testLogging {
8586
events(FAILED)
8687
exceptionFormat = FULL

0 commit comments

Comments
 (0)