https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
i

iamthevoid

04/28/2021, 8:40 AM
Hi, everyone! I’m new in KMM development. Could you advice me please which framework for shared code testing is better?
b

Big Chungus

04/28/2021, 8:43 AM
There are only two choices, really. #kotest or #spek, both support mpp
I personally prefer kotest due to style flexibility it provides
However only spek supports kotlin native
i

iamthevoid

04/28/2021, 8:50 AM
I tried to add kotest into project but looks like it doesn’t support mobile targets. It leads that error (but for kotest samplesources) and project simply doesn’t builds. As I understood kotest supports only jvm and js targets, but i want to test shared code (kotlin-native). Or am i wrong?
However only spek supports kotlin native
Looks like it is exactly what i am looking for
Thanks
2 Views