José González Gómez
05/03/2021, 7:45 AMkotest
in a Kotlin Multiplatform Mobile project? I have included the following dependencies in the shared project:
val kotestVersion = "4.4.0"
kotlin {
sourceSets {
val commonTest by getting {
dependencies {
implementation("io.kotest:kotest-runner-junit5:$kotestVersion")
implementation("io.kotest:kotest-assertions-core:$kotestVersion")
implementation("io.kotest:kotest-property:$kotestVersion")
}
}
}
}
but this fails when trying to build the project because there is no ios_x64
variant of kotest-runner-junit5
. Android Studio fails while reloading the project trying to find kotest-runner-junit5-4.4.0-samplessources.jar
and ./gradlew build
explicitly fails due to the missing ios_x64
variant not found.thanksforallthefish
05/03/2021, 7:56 AMJosé González Gómez
05/03/2021, 7:57 AMkotest-runner-junit5
is jvm only 😞MiSikora
05/03/2021, 7:58 AMJosé González Gómez
05/03/2021, 8:03 AMkotest
and you must stick to Kotlin Test style using @Test
annotation, am I right? https://kotlinlang.org/docs/mpp-run-tests.html#test-shared-codeMiSikora
05/03/2021, 8:04 AMJosé González Gómez
05/03/2021, 8:04 AMsam
05/03/2021, 12:17 PM