Garrison Henkle

07/19/2023, 3:55 PM
Is there a way to do any form of UI testing on iOS at the moment? I know the Jetpack Compose testing library hasn’t been ported yet, but even hacky, iOS-specific UI tests would be helpful in some of my test projects.
👍 2

Nikita Lipsky

07/20/2023, 12:36 PM
You may look at this test:[…]/kotlin/androidx/compose/foundation/gestures/DragGestureTest.kt It uses ImageComposeScene that is available for iOS target -[…]oMain/kotlin/androidx/compose/ui/ImageComposeScene.skikoMain.kt To run Kotlin Compose tests on iOS simulator you will need to pass additional flags to linker like in this PR ( (will be fixed in 1.5) To add tests to iOS target you may need to configure respected source set like:
Copy code
val iosTest by getting
val iosSimulatorArm64Test by getting {
Compose testing library hasn’t been ported yet
We plan to port (a subset of) it
gratitude thank you 1