mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
52 lines
1.4 KiB
Kotlin
52 lines
1.4 KiB
Kotlin
import org.jetbrains.kotlin.ideaExt.idea
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
testCompileOnly(project(":compiler:fir:raw-fir:psi2fir"))
|
|
|
|
testImplementation(project(":compiler:visualizer:render-psi"))
|
|
testImplementation(project(":compiler:visualizer:render-fir"))
|
|
|
|
testApiJUnit5()
|
|
|
|
testApi(projectTests(":compiler:tests-compiler-utils"))
|
|
testApi(projectTests(":compiler:tests-common-new"))
|
|
testApi(projectTests(":compiler:test-infrastructure"))
|
|
testApi(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests"))
|
|
testImplementation(projectTests(":generators:test-generator"))
|
|
|
|
testRuntimeOnly(intellijDep()) { includeJars("intellij-deps-fastutil-8.4.1-4") }
|
|
testRuntimeOnly(compile(intellijDep()) { includeJars("jna", rootProject = rootProject) })
|
|
}
|
|
|
|
val generationRoot = projectDir.resolve("tests-gen")
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {
|
|
projectDefault()
|
|
this.java.srcDir(generationRoot.name)
|
|
}
|
|
}
|
|
|
|
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
|
apply(plugin = "idea")
|
|
idea {
|
|
this.module.generatedSourceDirs.add(generationRoot)
|
|
}
|
|
}
|
|
|
|
projectTest(parallel = true, jUnit5Enabled = true) {
|
|
workingDir = rootDir
|
|
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
testsJar()
|
|
|
|
val generateVisualizerTests by generator("org.jetbrains.kotlin.visualizer.GenerateVisualizerTestsKt")
|