Regarding of testing, I’ve been writing some tests...
# multiplatform
a
Regarding of testing, I’ve been writing some tests on commonMain and they’re always running under ios or iosX64 Gradle tasks. I’ve downloaded the kmm-sample project from KMM documentation and the same happens there. Does anybody knows why the shared code is always executed under ios tasks? I’m having difficulties to find some quality content about shared tests.
t
you can also run it under any other target using the correct gradle command, just not from the gutter icon in the IDE (this is a known bug)
a
It also happens when I run the ‘check’ task. You can see ‘[ios]’ at the end of every test method execution.
t
run
testDebugUnitTest
etc as normal for android
a
That’s right. Thank you for your help Tijl.
👍 1
r
The ticket is https://youtrack.jetbrains.com/issue/KT-34535 if you want to give it a +1
👍 2