Compose UI Testing beyond layouts
summary
Builds a Compose UI test stack that runs 400+ end-to-end regression tests with mocked network and navigation, cutting full run time from 55 to 25 minutes by running only affected-module tests. Uses OkHttp MockWebServer plus a mock web server registry DSL for path/query/body matching and templated responses, dependency replacement via Anvil, reporting to Allure, and Marathon Cloud or bare-metal emulators. Adds a wait until interceptor to stabilize flaky interactions and a cacao-based screen/node abstraction so multi-screen flows are readable and reliably pass.
AI-written summary · about
chapters (9)
- 0:00UI testing in Compose intro
- 1:10Need for automated regression
- 4:41Setting up UI tests
- 8:57Interacting with UI in tests
- 16:21Mocking network for UI tests
- 26:38Stability in UI test automation
- 32:25Infrastructure for UI tests
- 35:18Reporting test results
- 37:02Key takeaways








