Hello, We are working on using KMP instead of App...
# multiplatform
t
Hello, We are working on using KMP instead of Appium to run our UI testing. It is working but they are few things that are not convenient for us. For instance, we cannot run a test from
commonMain
. When we click on the green arrow, it says "nothing". Was kinda expecting it would give us the choice between Android or iOS (on fleet, the arrow is not even here). I understand that what we are doing is not officially supported. The issue is we cannot run UI tests from iosTest, that's why we attempted this approach. My questions: • Is there something better to do? • Is there a plan for supporting the ability to use this arrow from the commonMain? Thanks for your help.
s
I'd like to hear about how you're using KMP for testing instead of Appium, sounds cool! It seems like you're trying to use the run configurations that Android Studio / Fleet / IDE is generating, what if you tried to execute your tests directly from the CLI, then made a matching Run Configuration for your tests.
t
For Android instrumentation, command line run just fine, not ideal for devs. Guess I could create a small plugin to run the tests from common. For iOS, we can only run them from the iosApp project, inside of our iosAppUITests group. The distribution looks like this • androidInstrumentTest ◦ class AndroidClickButtonTest : ClickButtonTest • commonMain ◦ abstract class ClickButtonTest • iosMain ◦ class IosClickButtonTest : ClickButtonTest They all have test annotations. And then in addition for iOS we have iosApp • iosAppUITests ◦ MyUITests -> IosClickButtonTest.testSomething()
🧵 1