SuccessOrFailure test on JVM added

This commit is contained in:
Roman Elizarov
2018-07-16 15:21:10 +03:00
committed by Denis Zharkov
parent 0b59061bfe
commit d33d21907d
2 changed files with 122 additions and 1 deletions
+30 -1
View File
@@ -41,7 +41,11 @@ sourceSets {
kotlin {
srcDir '../coroutines/jvm/src'
}
compileClasspath += sourceSets.main.output
}
coroutinesTest {
kotlin {
srcDir '../coroutines/jvm/test'
}
}
test {
kotlin {
@@ -70,6 +74,11 @@ dependencies {
testCompile project(':kotlin-test:kotlin-test-junit')
coroutinesCompile sourceSets.main.output
coroutinesTestCompile sourceSets.coroutines.output
coroutinesTestCompile project(':kotlin-test:kotlin-test-junit')
unsignedCompile sourceSets.main.output
}
@@ -207,6 +216,26 @@ compileCoroutinesKotlin {
}
}
compileCoroutinesTestKotlin {
kotlinOptions {
languageVersion = "1.3"
apiVersion = "1.3"
freeCompilerArgs = [
"-version",
"-Xallow-kotlin-package",
"-Xmultifile-parts-inherit",
"-module-name", "kotlin-stdlib-coroutines"
]
}
}
task coroutinesTest(type: Test, dependsOn: coroutinesTestClasses) {
testClassesDirs = sourceSets.coroutinesTest.output.classesDirs
classpath = sourceSets.coroutinesTest.runtimeClasspath
}
test.dependsOn coroutinesTest
compileUnsignedKotlin {
kotlinOptions {
languageVersion = "1.3"