Skip to content

Commit 0b6f83b

Browse files
committed
Tweak Kotest config.
- Disable classpath scanning. - Enable full test path in CI test reports.
1 parent 539b491 commit 0b6f83b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

aockt-test/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ dependencies {
88
implementation(libs.kotest.api)
99
implementation(libs.kotest.assertions)
1010
}
11+
12+
tasks.withType<Test>().configureEach {
13+
systemProperties(
14+
"kotest.framework.config.fqn" to "io.github.jadarma.aockt.test.TestConfig",
15+
"kotest.framework.classpath.scanning.config.disable" to true,
16+
"kotest.framework.classpath.scanning.autoscan.disable" to true,
17+
)
18+
}

aockt-test/src/test/kotlin/TestConfig.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ object TestConfig : AbstractProjectConfig() {
2020

2121
@ExperimentalKotest
2222
override val concurrentSpecs: Int = cores
23+
24+
// https://kotest.io/docs/framework/test_output.html
25+
override var displayFullTestPath: Boolean? = System.getenv("CI").toBoolean()
2326
}

0 commit comments

Comments
 (0)