When developing Kotlin/Native solution one may need to run unit tests against a selected target platform to verify that the solution works correctly on all supported runtimes. Kotlin/Native already provides nice support for running tests on JVM, Android, Linux, Windows and macOS but it does not support iOS out of the box.

This story provides a quick-start guide on running Kotlin/Native unit tests on iOS simulator. We will first add some tests to a basic project and run them manually. Then we will see how to implement a simple Gradle task allowing running that process as a part of the build.

#ios #kotlin #kotlin-native

Running Kotlin/Native unit tests on iOS Simulator
3.40 GEEK