Has anyone here successfully used Kotest with KMM? For some reason if I add any Kotest deps to
commonTest
Android Studio just... stops acknowledging the existence of sourcesets other than Android. There's no error, syntax highlighting and everything else just... break.
Does this look normal?
Copy code
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("app.cash.turbine:turbine:0.12.1")
implementation("io.kotest:kotest-assertions-core:$kotestVersion")
implementation("io.kotest:kotest-framework-engine:$kotestVersion")
implementation("io.kotest:kotest-property:$kotestVersion")
implementation("io.mockative:mockative:$mockativeVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutinesVersion")
}
}
✅ 1
Sam
03/21/2023, 1:21 AM
If I comment out the three Kotest lines, everything goes back to normal
Sam
03/21/2023, 1:22 AM
(Stuff also still breaks if I comment out everything else)
Sam
03/21/2023, 1:40 AM
Oh now it decides to show the error. It just wasn't popping up the error window for some reason...
Copy code
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find kotest-common.klib (io.kotest:kotest-common-iosx64:5.5.5).