Merge pull request #65 from usbharu/test

Test
This commit is contained in:
usbharu 2023-09-30 15:21:44 +09:00 committed by GitHub
commit cbdce824e5
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
import kotlin.math.min
val ktor_version: String by project
val kotlin_version: String by project
@ -27,6 +28,9 @@ version = "0.0.1"
tasks.withType<Test> {
useJUnitPlatform()
val cpus = Runtime.getRuntime().availableProcessors()
maxParallelForks = min(1, cpus - 1)
setForkEvery(4)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {

View File

@ -0,0 +1,2 @@
junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$Random
junit.jupiter.testmethod.order.default=org.junit.jupiter.api.MethodOrderer$Random