blob: 070091a01115df9733ab635dc4e6294d0ee1a1ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
subprojects {
sourceSets {
create("integrationTest") {
compileClasspath += sourceSets.main.get().output
runtimeClasspath += sourceSets.main.get().output
}
}
configurations.getByName("integrationTestImplementation") {
extendsFrom(configurations.implementation.get())
}
configurations.getByName("integrationTestRuntimeOnly") {
extendsFrom(configurations.runtimeOnly.get())
}
dependencies {
implementation(project(":integration-tests"))
}
val integrationTest by tasks.register<Test>("integrationTest") {
maxHeapSize = "2G"
description = "Runs integration tests."
group = "verification"
testClassesDirs = sourceSets["integrationTest"].output.classesDirs
classpath = sourceSets["integrationTest"].runtimeClasspath
useJUnit()
}
tasks.check {
dependsOn(integrationTest)
}
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("test-junit"))
val coroutines_version: String by project
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")}
|