Hi I'm migrating from kotlintest to kotest but I f...
# kotest
h
Hi I'm migrating from kotlintest to kotest but I found a strange issue: When I run the tests from the
IDE
every test is successful but when I try to run the test with
gradlew
I'm getting this error in an assertion:
Copy code
java.lang.NoClassDefFoundError: arrow/core/NonFatal
the assertion is this
shouldBeLeft()
Someone can help me?
a
Hi @HarryPulvirenti please make sure you have
Copy code
compile group: 'io.kotest', name: 'kotest-assertions-arrow-jvm', version: '4.0.3'
dependency in build file.
h
I'm using this dependencies
Copy code
const val koTestRunner = "io.kotest:kotest-runner-junit5-jvm:${Versions.koTest}"
const val koTestAssertionsCore = "io.kotest:kotest-assertions-core-jvm:${Versions.koTest}"
const val koTestProperty = "io.kotest:kotest-property-jvm:${Versions.koTest}"
const val koTestArrow = "io.kotest:kotest-assertions-arrow-jvm:${Versions.koTest}"
so should be fine
a
@HarryPulvirenti could you please share more details like kotest version, kotlin version, gradle version, and java version As i have checked this for me its working fine for me. https://github.com/ashishkujoy/kotest-playground/blob/master/src/test/kotlin/org/playground/ArrowTest.kt
h
Kotest 4.0.3
Gradle 6.4-rc-1
Kotlin 1.3.72
Java 1.8
Arrow 0.9.0
s
That arrow version needs to be 0.10.4
Unfortunately arrow is not compatible between releases so we have to pick one.
h
Oh ok thanks
I will update it
s
All stable Arrow modules are starting from 0.10.x 🙂
👍🏻 1
So once we can update kotest, this issue should be fixed in the future
s
there was an issue between 0.10.4 and 0.10.5, some dependency change fyi