Skip to content

Commit b6c9da9

Browse files
committed
Pass Kotest system props to the test task.
1 parent a7dc6a4 commit b6c9da9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gradle/build-logic/src/main/kotlin/conventions.kotest.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ kover {
4343

4444
tasks.withType<Test>().configureEach {
4545
useJUnitPlatform()
46+
4647
// Don't cache tests, make them run again every time.
4748
outputs.upToDateWhen { false }
49+
50+
// Pass along system properties for Kotest.
51+
systemProperties = System.getProperties()
52+
.asIterable()
53+
.filter { it.key.toString().startsWith("kotest.") }
54+
.associate { it.key.toString() to it.value }
4855
}

0 commit comments

Comments
 (0)