https://kotlinlang.org logo
#kotest
Title
# kotest
d

Didier Villevalois

07/28/2022, 2:46 PM
It looks like by bumping 5.3.2 to 5.4.1, all my commonTest tests are not executed at all on native (linuxX64). Trying to understand the problem... Will add more info as soon as I understand what is going on. (You can try running
./gradlew :kzmq-tests:linuxX64Test
on https://github.com/ptitjes/kzmq.)
@sam I can't figure out from where the problem comes from, but it seems a regression of Kotest.
c

charleskorn

07/29/2022, 10:09 AM
What version of Kotlin are you using?
s

sam

07/29/2022, 5:33 PM
This might be what you just fixed Charles
d

Didier Villevalois

07/29/2022, 5:33 PM
1.7.10
s

sam

07/29/2022, 5:42 PM
Native is skipped in 1.7 yeah, can you try the latest 5.5 snapshot ?
d

Didier Villevalois

07/29/2022, 5:43 PM
@sam I'm trying the 5.5.0.1066-SNAPSHOT but, resyncing in IDEA, I get: https://gist.github.com/ptitjes/8bd98141ed7ff98d535b6af63905d95f For information, I use the "old classpath" way. In root `build.gradle.kts`:
Copy code
buildscript {
    // ...
    dependencies {
        // ...
        classpath("io.kotest:kotest-framework-multiplatform-plugin-gradle:$kotestPluginVersion")
    }
}
And in sub-project
:kzmq-tests
, in `build.gradle.kts`:
Copy code
kotlin {
    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation("io.kotest:kotest-framework-engine:$kotestVersion")
                implementation("io.kotest:kotest-framework-datatest:$kotestVersion")
                implementation("io.kotest:kotest-assertions-core:$kotestVersion")
            }
        }
    }
}
s

sam

07/29/2022, 6:11 PM
We might need to publish a new gradle plugin version too
d

Didier Villevalois

07/29/2022, 6:13 PM
But is that normal that there is no version 5.5.0.1066-SNAPSHOT for kotest-multiplatform-plugin-js?
s

sam

07/29/2022, 6:14 PM
That's called something else now which is why we'll need to republish the gradle side so it knows what to look for
Since this is a fix and not a feature I think we can release this as 5.4.2 this weekend
d

Didier Villevalois

08/10/2022, 9:59 AM
Hi @sam! Do you think we could have a 5.4.2 version of the Gradle plugin soon?
Thanks a lot @sam! My linuxX64 tests run (well fail) again with 5.4.2... ❤️
s

sam

08/10/2022, 10:01 PM
awesome 🙂
glad it works
5 Views