Closed abhishekdewan101 closed 3 years ago
This is fixed in Intellij but hasn't made it to Android Studio yet. It might be fixed in the latest canary but I haven't checked. See https://youtrack.jetbrains.com/issue/KT-42463
@russhwolf Awesome! I can try this with Intellij and report back !
Can confirm that when using latest IntelliJ (2020.3) I can see the option to run tests for iOS and Android
Issue
When I run the unit test from the commonTest folder it seems to be running the iOS test gradle task. I have tried to attach screen shots of how I am trying to run the unit test in android studio.
As far as I can understand from the docs the common unit tests need to be run twice one on the android platform and one on iOS.
For instance when I run the BreedModelTest it uses a testDbConnection method to get the SQLDriver from the various platforms. To me it seems like that when I run the test it should also test getting the driver from android and run the tests essentially twice. I might be wrong here in my assumption since I am pretty new to KMM.
As can be seen from the screen shots the resulting gradle task that is created when I follow this method of running the test also only runs the iOS gradle commands for some reason.
Configurations
Screenshots