Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 1 | configurations { |
| 2 | testArtifacts |
| 3 | } |
| 4 | |
| 5 | dependencies { |
| 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 | |
| 29 | def testCasesDeclarationsDump = "${buildDir}/visibilities.json".toString() |
| 30 | |
| 31 | compileTestKotlin { |
| 32 | kotlinOptions { |
| 33 | freeCompilerArgs = ["-Xdump-declarations-to=$testCasesDeclarationsDump"] |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | sourceSets { |
| 38 | test { |
| 39 | java { |
Vsevolod Tolstopyatov | e1fa197 | 2018-06-19 15:54:58 +0300 | [diff] [blame] | 40 | srcDir "test/cases" |
Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | test { |
Vsevolod Tolstopyatov | 313978c | 2018-06-01 15:30:34 +0300 | [diff] [blame] | 46 | dependsOn cleanCompileTestKotlin |
Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 47 | dependsOn configurations.testArtifacts |
| 48 | |
| 49 | systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath |
| 50 | systemProperty 'testCasesDeclarations', testCasesDeclarationsDump |
Roman Elizarov | 9fb5d67 | 2018-05-14 16:17:15 +0300 | [diff] [blame] | 51 | systemProperty 'overwrite.output', project.properties['overwrite.output'] |
Vsevolod Tolstopyatov | 74bcc92 | 2018-05-03 20:07:54 +0300 | [diff] [blame] | 52 | jvmArgs '-ea' |
| 53 | } |