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:
Ilya Chernikov
2019-05-23 12:58:48 +02:00
parent a3d1fe312e
commit b97813f2b0
7 changed files with 62 additions and 10 deletions
@@ -0,0 +1,32 @@
plugins {
kotlin("jvm")
}
jvmTarget = "1.6"
val embeddableTestRuntime by configurations.creating
dependencies {
testCompile(commonDep("junit"))
testCompileOnly(project(":kotlin-scripting-jvm-host"))
testCompileOnly(project(":compiler:cli"))
testCompileOnly(project(":core:util.runtime"))
testRuntime(project(":kotlin-scripting-jsr223"))
embeddableTestRuntime(commonDep("junit"))
embeddableTestRuntime(project(":kotlin-scripting-jsr223-embeddable"))
embeddableTestRuntime(testSourceSet.output)
}
sourceSets {
"main" {}
"test" { projectDefault() }
}
projectTest(parallel = true)
projectTest(taskName = "embeddableTest", parallel = true) {
workingDir = rootDir
dependsOn(embeddableTestRuntime)
classpath = embeddableTestRuntime
}