[Daemon] Use JUnit Vintage engine to run JUnit4 tests
This commit is contained in:
committed by
Space Team
parent
2a7403a979
commit
b8d1398bdb
@@ -11,8 +11,11 @@ dependencies {
|
||||
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 {
|
||||
@@ -20,10 +23,12 @@ sourceSets {
|
||||
"test" { projectDefault() }
|
||||
}
|
||||
|
||||
projectTest(parallel = true) {
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user