blob: be32e758a741f96848b04762153258999c571c3f [file] [log] [blame]
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +03001configurations {
2 testArtifacts
3}
4
5dependencies {
6 compile 'org.ow2.asm:asm-debug-all:5.0.4'
7 compile 'com.google.code.gson:gson:2.6.2'
8
9 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
10 testArtifacts project(':kotlinx-coroutines-core')
11 testArtifacts project(':kotlinx-coroutines-io')
12
13
14 testArtifacts project(':kotlinx-coroutines-reactive')
15 testArtifacts project(':kotlinx-coroutines-reactor')
16 testArtifacts project(':kotlinx-coroutines-rx1')
17 testArtifacts project(':kotlinx-coroutines-rx2')
18
19 testArtifacts project(':kotlinx-coroutines-guava')
20 testArtifacts project(':kotlinx-coroutines-jdk8')
21 testArtifacts project(':kotlinx-coroutines-nio')
22 testArtifacts project(':kotlinx-coroutines-quasar')
23
24 testArtifacts project(':kotlinx-coroutines-android')
25 testArtifacts project(':kotlinx-coroutines-javafx')
26 testArtifacts project(':kotlinx-coroutines-swing')
27}
28
29def testCasesDeclarationsDump = "${buildDir}/visibilities.json".toString()
30
31compileTestKotlin {
32 kotlinOptions {
33 freeCompilerArgs = ["-Xdump-declarations-to=$testCasesDeclarationsDump"]
34 }
35}
36
37sourceSets {
38 test {
39 java {
Vsevolod Tolstopyatove1fa1972018-06-19 15:54:58 +030040 srcDir "test/cases"
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030041 }
42 }
43}
44
45test {
Vsevolod Tolstopyatov313978c2018-06-01 15:30:34 +030046 dependsOn cleanCompileTestKotlin
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030047 dependsOn configurations.testArtifacts
48
49 systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath
50 systemProperty 'testCasesDeclarations', testCasesDeclarationsDump
Roman Elizarov9fb5d672018-05-14 16:17:15 +030051 systemProperty 'overwrite.output', project.properties['overwrite.output']
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030052 jvmArgs '-ea'
53}