blob: c6eaffdfca0dde4319544cbe200ad8fe0c1a11c2 [file] [log] [blame]
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03001/*
Roman Elizarovd2f4b2b2019-09-02 17:22:39 +03002 * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
Roman Elizarov1f74a2d2018-06-29 19:19:45 +03003 */
4
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +03005configurations {
6 testArtifacts
Roman Elizarovd2f4b2b2019-09-02 17:22:39 +03007 configureKotlinJvmPlatform(testArtifacts)
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +03008}
9
10dependencies {
11 compile 'org.ow2.asm:asm-debug-all:5.0.4'
12 compile 'com.google.code.gson:gson:2.6.2'
13
14 testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
Alphonse Bendt4b0379f2018-06-20 00:27:53 +020015
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030016 testArtifacts project(':kotlinx-coroutines-core')
Vsevolod Tolstopyatov4327b212018-12-17 19:49:12 +030017 testArtifacts project(':kotlinx-coroutines-test')
Vsevolod Tolstopyatovc7239ac2018-12-10 11:41:00 +030018 testArtifacts project(':kotlinx-coroutines-debug')
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030019
20 testArtifacts project(':kotlinx-coroutines-reactive')
21 testArtifacts project(':kotlinx-coroutines-reactor')
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030022 testArtifacts project(':kotlinx-coroutines-rx2')
23
24 testArtifacts project(':kotlinx-coroutines-guava')
25 testArtifacts project(':kotlinx-coroutines-jdk8')
Alphonse Bendt4b0379f2018-06-20 00:27:53 +020026 testArtifacts project(':kotlinx-coroutines-slf4j')
Alex Saveau118ee992018-08-30 16:13:47 -070027 testArtifacts project(path: ':kotlinx-coroutines-play-services', configuration: 'default')
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030028
29 testArtifacts project(':kotlinx-coroutines-android')
30 testArtifacts project(':kotlinx-coroutines-javafx')
31 testArtifacts project(':kotlinx-coroutines-swing')
32}
33
34def testCasesDeclarationsDump = "${buildDir}/visibilities.json".toString()
35
36compileTestKotlin {
37 kotlinOptions {
38 freeCompilerArgs = ["-Xdump-declarations-to=$testCasesDeclarationsDump"]
39 }
40}
41
42sourceSets {
43 test {
44 java {
Vsevolod Tolstopyatove1fa1972018-06-19 15:54:58 +030045 srcDir "test/cases"
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030046 }
47 }
48}
49
50test {
Vsevolod Tolstopyatov313978c2018-06-01 15:30:34 +030051 dependsOn cleanCompileTestKotlin
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030052 dependsOn configurations.testArtifacts
53
54 systemProperty 'testCasesClassesDirs', sourceSets.test.output.classesDirs.asPath
55 systemProperty 'testCasesDeclarations', testCasesDeclarationsDump
Roman Elizarov9fb5d672018-05-14 16:17:15 +030056 systemProperty 'overwrite.output', project.properties['overwrite.output']
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +030057 jvmArgs '-ea'
58}