[TEST] Move generated js compiler tests to test-gen directories
This commit is contained in:
committed by
teamcityserver
parent
77ed51b3ab
commit
fd935b7c54
@@ -4,6 +4,7 @@ import de.undercouch.gradle.tasks.download.Download
|
|||||||
import org.gradle.internal.os.OperatingSystem
|
import org.gradle.internal.os.OperatingSystem
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
|
||||||
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages
|
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinUsages
|
||||||
|
import org.jetbrains.kotlin.ideaExt.idea
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
@@ -96,11 +97,22 @@ dependencies {
|
|||||||
antLauncherJar(toolsJar())
|
antLauncherJar(toolsJar())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val generationRoot = projectDir.resolve("tests-gen")
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" {}
|
"main" { }
|
||||||
"test" { projectDefault() }
|
"test" {
|
||||||
|
projectDefault()
|
||||||
|
this.java.srcDir(generationRoot.name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
||||||
|
apply(plugin = "idea")
|
||||||
|
idea {
|
||||||
|
this.module.generatedSourceDirs.add(generationRoot)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun Test.setUpJsBoxTests(jsEnabled: Boolean, jsIrEnabled: Boolean) {
|
fun Test.setUpJsBoxTests(jsEnabled: Boolean, jsIrEnabled: Boolean) {
|
||||||
dependsOn(":dist")
|
dependsOn(":dist")
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ fun main(args: Array<String>) {
|
|||||||
//generateTestDataForReservedWords()
|
//generateTestDataForReservedWords()
|
||||||
|
|
||||||
testGroupSuite(args) {
|
testGroupSuite(args) {
|
||||||
testGroup("js/js.tests/test", "js/js.translator/testData", testRunnerMethodName = "runTest0") {
|
testGroup("js/js.tests/test-gen", "js/js.translator/testData", testRunnerMethodName = "runTest0") {
|
||||||
testClass<AbstractBoxJsTest> {
|
testClass<AbstractBoxJsTest> {
|
||||||
model("box/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS)
|
model("box/", pattern = "^([^_](.+))\\.kt$", targetBackend = TargetBackend.JS)
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@ fun main(args: Array<String>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testGroup("js/js.tests/test", "compiler/testData", testRunnerMethodName = "runTest0") {
|
testGroup("js/js.tests/test-gen", "compiler/testData", testRunnerMethodName = "runTest0") {
|
||||||
testClass<AbstractJsCodegenBoxTest> {
|
testClass<AbstractJsCodegenBoxTest> {
|
||||||
model("codegen/box", targetBackend = TargetBackend.JS)
|
model("codegen/box", targetBackend = TargetBackend.JS)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user