Skip to content

Commit 4007a79

Browse files
sksamuelclaude
andcommitted
Fix Kotest project config discovery for undertest-kotest
Set kotest.framework.config.fqn system property so Kotest 6 can find KotestProjectConfig, enabling SelfieExtension to initialize properly. Without this, all tests failed with "SelfieExtension wasn't added to the AbstractProjectConfig". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5ee91c5 commit 4007a79

8 files changed

Lines changed: 2027 additions & 12 deletions

File tree

jvm/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ plugins {
2929
id 'org.jetbrains.kotlin.multiplatform' version '2.2.20' apply false
3030
// https://github.com/adamko-dev/dokkatoo/releases
3131
id 'dev.adamko.dokkatoo-html' version '2.4.0' apply false
32+
// https://plugins.gradle.org/plugin/io.kotest
33+
id 'io.kotest' version '6.1.1' apply false
3234
}
3335

3436
blowdryerSetup {

jvm/undertest-junit5-kotest/harness/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ver_JUNIT_PIONEER=2.2.0
99
ver_OKIO=3.7.0
1010
ver_KOTLIN_TEST=1.9.22
1111
ver_KOTLIN_SERIALIZATION=1.6.3
12-
ver_KOTEST=6.1.0
12+
ver_KOTEST=6.1.1

jvm/undertest-junit5-kotest/harness/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ plugins {
2929
id 'org.jetbrains.kotlin.multiplatform' version '2.2.20' apply false
3030
// https://github.com/adamko-dev/dokkatoo/releases
3131
id 'dev.adamko.dokkatoo-html' version '2.4.0' apply false
32+
// https://plugins.gradle.org/plugin/io.kotest
33+
id 'io.kotest' version '6.1.1' apply false
3234
}
3335

3436
blowdryerSetup {

jvm/undertest-kotest/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'org.jetbrains.kotlin.multiplatform'
33
id 'com.diffplug.spotless'
4+
id 'io.kotest'
45
}
56
repositories {
67
mavenCentral()
@@ -46,6 +47,7 @@ tasks.named('jvmTest').configure {
4647
testLogging.showStandardStreams = true
4748
// the snapshots are both output and input, for this harness best if the test just always runs
4849
outputs.upToDateWhen { false }
50+
systemProperty "kotest.framework.config.fqn", "kotest.KotestProjectConfig"
4951
// defaults to 'write'
5052
String SELFIE = findProperty('selfie')
5153
if (SELFIE != null) {

0 commit comments

Comments
 (0)