File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,7 @@ val KotlinBuildProperties.isObsoleteJdkOverrideEnabled: Boolean
35
35
get() = getBoolean(" kotlin.build.isObsoleteJdkOverrideEnabled" , false )
36
36
37
37
val KotlinBuildProperties .isNativeRuntimeDebugInfoEnabled: Boolean
38
- get() = getBoolean(" kotlin.native.isNativeRuntimeDebugInfoEnabled" , false )
38
+ get() = getBoolean(" kotlin.native.isNativeRuntimeDebugInfoEnabled" , false )
39
+
40
+ val KotlinBuildProperties .junit5NumberOfThreadsForParallelExecution: Int?
41
+ get() = (getOrNull(" kotlin.test.junit5.maxParallelForks" ) as ? String )?.toInt()
Original file line number Diff line number Diff line change @@ -199,6 +199,10 @@ fun Project.projectTest(
199
199
systemProperty(" jps.kotlin.home" , project.rootProject.extra[" distKotlinHomeDir" ]!! )
200
200
systemProperty(" kotlin.ni" , if (project.rootProject.hasProperty(" newInferenceTests" )) " true" else " false" )
201
201
systemProperty(" org.jetbrains.kotlin.skip.muted.tests" , if (project.rootProject.hasProperty(" skipMutedTests" )) " true" else " false" )
202
+ project.kotlinBuildProperties.junit5NumberOfThreadsForParallelExecution?.let { n ->
203
+ systemProperty(" junit.jupiter.execution.parallel.config.strategy" , " fixed" )
204
+ systemProperty(" junit.jupiter.execution.parallel.config.fixed.parallelism" , n)
205
+ }
202
206
203
207
systemProperty(" idea.ignore.disabled.plugins" , " true" )
204
208
@@ -319,4 +323,4 @@ abstract class PublishToMavenLocalSerializable : AbstractPublishToMaven() {
319
323
}
320
324
}.run ()
321
325
}
322
- }
326
+ }
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ org.gradle.vfs.watch=true
67
67
# If it differs from default use next flag:
68
68
# bootstrap.local.path=/path/to/repo
69
69
70
+ # Set number of threads which are used for running JUnit 5 tests in concurrent mode
71
+ # If not set then min(number of CPU cores, 16) will be used
72
+ # kotlin.test.junit5.maxParallelForks=4
70
73
71
74
# Those properties are used to automatically generate run configurations for modularized
72
75
# and full pipeline tests for different sets of test data
You can’t perform that action at this time.
0 commit comments