3b5c2bbcaa
This should be helpful when frequently testing changes in JS BE.
52 lines
1.5 KiB
Kotlin
52 lines
1.5 KiB
Kotlin
|
|
apply { plugin("kotlin") }
|
|
|
|
dependencies {
|
|
testCompile(project(":compiler.tests-common"))
|
|
testCompileOnly(project(":compiler:frontend"))
|
|
testCompileOnly(project(":compiler:cli"))
|
|
testCompileOnly(project(":compiler:util"))
|
|
testCompile(project(":js:js.translator"))
|
|
testCompile(project(":js:js.serializer"))
|
|
testCompile(project(":js:js.dce"))
|
|
testCompile(ideaSdkDeps("openapi", "idea"))
|
|
testRuntime(commonDep("junit:junit"))
|
|
testRuntime(projectDist(":kotlin-test:kotlin-test-jvm"))
|
|
testRuntime(projectDist(":kotlin-test:kotlin-test-junit"))
|
|
testRuntime(projectDist(":kotlin-stdlib"))
|
|
testRuntime(projectDist(":kotlin-reflect"))
|
|
testRuntime(project(":compiler:backend-common"))
|
|
// testRuntime(ideaSdkDeps("*.jar"))
|
|
testRuntime(commonDep("org.fusesource.jansi", "jansi"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" {}
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
val testDistProjects = listOf(
|
|
"", // for root project
|
|
":prepare:mock-runtime-for-test",
|
|
":kotlin-compiler",
|
|
":kotlin-script-runtime",
|
|
":kotlin-stdlib",
|
|
":kotlin-stdlib-js",
|
|
":kotlin-test:kotlin-test-jvm",
|
|
":kotlin-test:kotlin-test-junit",
|
|
":kotlin-daemon-client",
|
|
":kotlin-ant")
|
|
|
|
projectTest {
|
|
dependsOn(*testDistProjects.map { "$it:dist" }.toTypedArray())
|
|
workingDir = rootDir
|
|
}
|
|
|
|
testsJar {}
|
|
|
|
projectTest("quickTest") {
|
|
dependsOn(*testDistProjects.map { "$it:dist" }.toTypedArray())
|
|
workingDir = rootDir
|
|
systemProperty("kotlin.js.skipMinificationTest", "true")
|
|
}
|