| 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(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil")) |
| testRuntimeOnly(commonDependency("net.java.dev.jna:jna")) |
| } |
| |
| 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, jUnitMode = JUnitMode.JUnit5) { |
| workingDir = rootDir |
| |
| useJUnitPlatform() |
| } |
| |
| testsJar() |
| |
| val generateVisualizerTests by generator("org.jetbrains.kotlin.visualizer.GenerateVisualizerTestsKt") |