I'm having some troubles setting `Kotest` up for o...
# kotest
r
I'm having some troubles setting
Kotest
up for our Android project. Maybe someone that went through this can help me out? 🙂. The situation: • We still have JUnit 4 unit tests wherever
Robolectric
is used. (We want to get rid of
Robolectric
in the long run) • Tests that don't need
Robolectric
are already written in JUnit 5 (This would be migrated to
Kotest
immediately) Our requirements: • Tests of a
Kotest
spec need to be easily runnable (either gutter icons or the whole class) -> works with the plugin • Running all test in Android Studio needs to execute all the JUnit 4, JUnit 5 and
Kotest
tests • Running all tests via Gradle needs to do the same thing I'm having problems with the last two points. Running all tests in Android Studio via rightclick -> Run All Tests either does not pick up any
Kotest
files when JUnit is used or I get a
Test framework quit unexpectedly
when a
Kotest
run configuration is used that just points to the package. When running the gradle test task, I just get a
test event were not received
and no tests are executed. Using the
io.kotest:kotest-runner-junit4-jvm
dependency instead of
junit5
at least all the non-Kotest files are picked up. Anybody here that went through the same problems? Thanks!