Are there any examples of running multiplatform te...
# multiplatform
c
Are there any examples of running multiplatform tests on iOS? We have our KMP code covered by tests but they're JUnit tests. Currently we only run them on the development host. I want to also run them on iOS but I don't know how. What would the entry point be? Would I need to convert from JUnit to something else?
e
Yes, you’d need to use
kotlin-test
. Then with >= 1.3.70 you’ll be able to run them in an ios simulator out of the box.
c
Awesome. I'll look into it. Thanks!
e

https://d3nmt5vlzunoa1.cloudfront.net/kotlin/files/2021/02/js-native-test.gif

❤️ 3
b
iosX64Test is the gradle task. It runs them in an iOS simulator.