https://kotlinlang.org logo
m

Megan Teahan

01/23/2021, 12:03 AM
I'm writing a library that would be used for Android, iOS, and JS. I've got my first test set up, and when I go to run it, the drop down gives js and ios options to run but not jvm or android. I might be missing something simple, but any tips? I've set up the target as
android
and source folders for
androidMain
and
androidTest
.
d

darkmoon_uk

01/23/2021, 2:17 AM
I don't know why the IDE isn't offering you the a Android option but I do have similar issues with KMP not recognising the Android module properly in several places, I guess it's bugged at the moment. If you are ok with running all the tests, not just this specific one, you could simply run the Gradle task
testDebugUnitTest
👍 1
a

Alex

01/23/2021, 2:13 PM
This is a known bug: https://youtrack.jetbrains.com/issue/KT-34535 You should use the Gradle task 'check' to run all your tests.
👍 1
3 Views