KMM newbie here... I'm trying to setup tests in a ...
# test
j
KMM newbie here... I'm trying to setup tests in a KMM project and I have some doubts: it seems there's no other test runnner than kotlin.test to run tests in all the platforms. But kotlin.test seems to be quite limited regarding test organization, as you can only create classes with methods annotated with
@Test
. I'm used to other test frameworks which give you a lot of freedom regarding test organization, for example Kotest provides several testing styles. So, • Is there any recommended way to organize tests using kotlin.test? Or • Is there any way to use another runner/framework which gives you more freedom regarding test organization in a multiplatform project?
s
kotest supports JVM and JS but if you also want native, then kotlin.test is your best bet.
j
Yes, I need native, I'm developing for Android / iOS