This is a Kotlin Multiplatform project targeting Android, iOS.
The empty app contains identical tests.
Swift: https://github.com/ASalavei/HostAppTest/blob/main/iosApp/HostAppTestTests/HostAppTestTests.swift
To run iOS tests with TEST_HOST on iOS simulator:
cd iosApp
xcodebuild test -scheme iosApp -destination "platform=iOS Simulator,name=iPhone 16 Pro"
To run clean and Kotlin iOS tests:
./gradlew :shared:cleanIosSimulatorArm64Test :shared:iosSimulatorArm64Test
Currently, they are failing, but should pass when properly configured. Ideally, Kotlin test should aso be launched from withing UIApplicationMain
, the same way xcodebuild
does it.