Composing With Confidence
summary
Shows how to test Jetpack Compose UIs using the Compose testing APIs: use createComposeRule or createAndroidComposeRule to render content, find nodes with onNodeWithText/onNodeWithTag/onNodeWithContentDescription, assert with assertIsEnabled/assertTextEquals and perform actions like performClick and performTextInput. Recommends using test tags and extracting test robots for maintainable tests, covers screenshot testing with Shot and fast JVM snapshots via Paparazzi, and links a sample repo with ~100% coverage.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:05Why test Jetpack Compose
- 2:50Setting up Compose tests
- 3:53Finding components in tests
- 7:42Assertions and actions
- 9:47Using test tags
- 11:32Testing individual components
- 15:46Testing a full screen
- 18:58Introducing test robots
- 24:36Snapshot testing options
- 26:20Paparazzi for fast screenshots
- 28:05Sample project overview
related talks
23mComposing With Confidence
36mTesting Jetpack Compose UI
33mHow to Test Your Compose UI
07mWrite your first Compose UI test
30mTesting Jetpack Compose UI
46mTesting Compose Anew: Simplicity, Reliability, Flexibility
05m5 ways Compose improves UI testing
47mDancing Around the Semantics Tree: UI Testing Compose Screens
