Is there emulator support for Compose UI tests for...
# compose
j
Is there emulator support for Compose UI tests for the Android target?
k
yes, take a look at the project generated by https://terrakok.github.io/Compose-Multiplatform-Wizard/ there are configured Compose UI tests on Android Emulator
🙌 1
j
Do I need to specify the emulator version when running tests?
./gradlew :composeApp:pixel5Check
I can’t find the
./gradlew :composeApp:pixel5Check
task in the
./gradlew tasks
list of my project, I see it in the Compose Multiplatform Wizard
Do you recommend getting a physical device for testing?
Maybe I get the task if I add this?
Copy code
@Suppress("UnstableApiUsage")
    testOptions {
        managedDevices.devices {
            maybeCreate<ManagedVirtualDevice>("pixel5").apply {
                device = "Pixel 5"
                apiLevel = 34
                systemImageSource = "aosp"
            }
        }
    }