d2aae67e03
Use dependency helper function that chooses whether to take them from the bootstrap repository or from a configuration of kotlin-test KT-61969
37 lines
962 B
Kotlin
37 lines
962 B
Kotlin
description = "Kotlin Daemon Tests"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(kotlinStdlib())
|
|
testImplementation(kotlinTest("junit"))
|
|
testImplementation(project(":kotlin-daemon"))
|
|
testImplementation(project(":kotlin-daemon-client"))
|
|
testImplementation(libs.junit4)
|
|
testImplementation(libs.junit.jupiter.api)
|
|
testImplementation(projectTests(":compiler:tests-common"))
|
|
testImplementation(intellijCore())
|
|
testRuntimeOnly(libs.junit.jupiter.engine)
|
|
testRuntimeOnly(libs.junit.vintage.engine)
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {}
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest(parallel = true, jUnitMode = JUnitMode.JUnit5) {
|
|
dependsOn(":dist")
|
|
workingDir = rootDir
|
|
|
|
useJUnitPlatform()
|
|
|
|
val testClassesDirs = testSourceSet.output.classesDirs
|
|
doFirst {
|
|
systemProperty("kotlin.test.script.classpath", testClassesDirs.joinToString(File.pathSeparator))
|
|
}
|
|
}
|