SuccessOrFailure test on JVM added
This commit is contained in:
committed by
Denis Zharkov
parent
0b59061bfe
commit
d33d21907d
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user