forked from kotest/kotest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (47 loc) · 1.84 KB
/
build.gradle.kts
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
plugins {
id("kotest-multiplatform-library-conventions")
}
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api(projects.kotestAssertions.kotestAssertionsShared)
implementation(kotlin("reflect"))
api(projects.kotestCommon) // needs to be API so the domain objects are open
// this is API because we want people to be able to use the functionality in their tests
// without needing to declare this dependency as well
api(projects.kotestFramework.kotestFrameworkApi)
// used to install the debug probes for coroutines
implementation(libs.kotlinx.coroutines.debug)
implementation(libs.kotlinx.coroutines.core)
// used for the test scheduler
implementation(libs.kotlinx.coroutines.test)
}
}
val jvmMain by getting {
dependencies {
implementation(libs.kotlinx.coroutines.test)
api(libs.classgraph)
// needed to scan for spec classes
api(projects.kotestFramework.kotestFrameworkDiscovery)
// we use AssertionFailedError from opentest4j
implementation(libs.opentest4j)
// used to write to the console with fancy colours!
api(libs.mordant)
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("stdlib"))
implementation(projects.kotestAssertions.kotestAssertionsCore)
implementation(projects.kotestFramework.kotestFrameworkDatatest)
implementation(projects.kotestProperty)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.mockk)
}
}
}
}
tasks.withType<Test>().configureEach {
jvmArgs("--add-opens=java.base/java.util=ALL-UNNAMED")
}