androidandroid-espressoandroid-testingandroid-jetpack-compose

How to test Jetpack Compose?


I use the new Jetpack Compose, now comes time to test UI. Does anyone know the tools for testing it?
Since Espresso mainly relies on view I don't think that it can help.


Solution

  • Android has a code sample (Jetnews) that includes a couple of UI tests. This may help you to set up some tests or in the future, they may add additional code samples around UI testing.

    Edit: Link to Jetnews UI Tests