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

curioustechizen

04/11/2020, 10:30 AM
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

eskatos

04/11/2020, 10:48 AM
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

curioustechizen

04/11/2020, 10:49 AM
Awesome. I'll look into it. Thanks!
e

eskatos

04/11/2020, 10:49 AM

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

❤️ 3
b

basher

04/11/2020, 2:30 PM
iosX64Test is the gradle task. It runs them in an iOS simulator.
9 Views