[TEST] Move generated visualizer tests to test-gen directories
This commit is contained in:
@@ -707,7 +707,7 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testGroup("compiler/visualizer/tests", "compiler/fir/raw-fir/psi2fir/testData") {
|
testGroup("compiler/visualizer/tests-gen", "compiler/fir/raw-fir/psi2fir/testData") {
|
||||||
testClass<AbstractPsiVisualizer>("PsiVisualizerForRawFirDataGenerated") {
|
testClass<AbstractPsiVisualizer>("PsiVisualizerForRawFirDataGenerated") {
|
||||||
model("rawBuilder", testMethod = "doFirBuilderDataTest")
|
model("rawBuilder", testMethod = "doFirBuilderDataTest")
|
||||||
}
|
}
|
||||||
@@ -717,7 +717,7 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testGroup("compiler/visualizer/tests", "compiler/visualizer/testData") {
|
testGroup("compiler/visualizer/tests-gen", "compiler/visualizer/testData") {
|
||||||
testClass<AbstractPsiVisualizer>("PsiVisualizerForUncommonCasesGenerated") {
|
testClass<AbstractPsiVisualizer>("PsiVisualizerForUncommonCasesGenerated") {
|
||||||
model("uncommonCases/testFiles", testMethod = "doUncommonCasesTest")
|
model("uncommonCases/testFiles", testMethod = "doUncommonCasesTest")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import org.jetbrains.kotlin.ideaExt.idea
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
@@ -17,13 +19,25 @@ dependencies {
|
|||||||
testCompile(projectTests(":compiler:fir:analysis-tests"))
|
testCompile(projectTests(":compiler:fir:analysis-tests"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val generationRoot = projectDir.resolve("tests-gen")
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" {}
|
"main" { projectDefault() }
|
||||||
"test" { projectDefault() }
|
"test" {
|
||||||
|
projectDefault()
|
||||||
|
this.java.srcDir(generationRoot.name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
||||||
|
apply(plugin = "idea")
|
||||||
|
idea {
|
||||||
|
this.module.generatedSourceDirs.add(generationRoot)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
projectTest {
|
projectTest {
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
}
|
}
|
||||||
|
|
||||||
testsJar()
|
testsJar()
|
||||||
|
|||||||
Reference in New Issue
Block a user