Implement test run on embeddable jars for jsr223 and scripting host tests...
also: - add missing tests to the global scriptingTests task - extract jsr223 tests into separate project - fix dependency in jsr223 embeddable jar
This commit is contained in:
@@ -5,13 +5,25 @@ plugins {
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
val allTestsRuntime by configurations.creating
|
||||
val testCompile by configurations
|
||||
testCompile.extendsFrom(allTestsRuntime)
|
||||
val embeddableTestRuntime by configurations.creating {
|
||||
extendsFrom(allTestsRuntime)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile(intellijCoreDep())
|
||||
testCompile(intellijDep()) { includeJars("openapi", "idea", "log4j") }
|
||||
allTestsRuntime(commonDep("junit"))
|
||||
allTestsRuntime(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
allTestsRuntime(intellijDep()) { includeJars("openapi", "idea", "idea_rt", "log4j") }
|
||||
testCompile(project(":kotlin-scripting-jvm-host"))
|
||||
testCompile(projectTests(":compiler:tests-common"))
|
||||
testCompile(commonDep("junit"))
|
||||
testCompile(project(":compiler:daemon-common")) // TODO: fix import (workaround for jps build)
|
||||
testCompile(project(":daemon-common")) // TODO: fix import (workaround for jps build)
|
||||
embeddableTestRuntime(project(":kotlin-scripting-jvm-host-embeddable"))
|
||||
embeddableTestRuntime(project(":kotlin-test:kotlin-test-jvm"))
|
||||
embeddableTestRuntime(project(":kotlin-test:kotlin-test-junit"))
|
||||
embeddableTestRuntime(projectTests(":compiler:tests-common")) { isTransitive = false }
|
||||
embeddableTestRuntime(testSourceSet.output)
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
@@ -22,3 +34,9 @@ sourceSets {
|
||||
projectTest(parallel = true) {
|
||||
workingDir = rootDir
|
||||
}
|
||||
|
||||
projectTest(taskName = "embeddableTest", parallel = true) {
|
||||
workingDir = rootDir
|
||||
dependsOn(embeddableTestRuntime)
|
||||
classpath = embeddableTestRuntime
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user