Rewrite compiler visualizer tests using new test infrastructure

This commit is contained in:
Ivan Kylchik
2021-02-04 20:23:04 +03:00
committed by TeamCityServer
parent 4c0cab4756
commit 4ac38e5f29
10 changed files with 326 additions and 213 deletions
+14 -6
View File
@@ -11,12 +11,18 @@ dependencies {
testCompileOnly(project(":compiler:fir:raw-fir:psi2fir"))
testCompileOnly(project(":compiler:visualizer:render-psi"))
testCompileOnly(project(":compiler:visualizer:render-fir"))
testImplementation(project(":compiler:visualizer:render-psi"))
testImplementation(project(":compiler:visualizer:render-fir"))
testCompile(commonDep("junit:junit"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests"))
testApi(platform("org.junit:junit-bom:5.7.0"))
testApi("org.junit.jupiter:junit-jupiter")
testApi("org.junit.platform:junit-platform-commons:1.7.0")
testApi("org.junit.platform:junit-platform-launcher:1.7.0")
testImplementation(projectTests(":compiler:tests-common"))
testImplementation(projectTests(":compiler:tests-common-new"))
testImplementation(projectTests(":compiler:test-infrastructure"))
testImplementation(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests"))
}
val generationRoot = projectDir.resolve("tests-gen")
@@ -36,8 +42,10 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
}
}
projectTest {
projectTest(parallel = true, jUnit5Enabled = true) {
workingDir = rootDir
useJUnitPlatform()
}
testsJar()