blob: 8458f1fe5c0f0450d38a8366b4b6d0a3e8aff9fe (
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
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")}
|