~/talk

Compose UI Testing beyond layouts

Talkat droidcon Berlin 2024 · 2024-07-03..07-05· [android, testing]
links:none on file
slides:none on file

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

  1. 0:00UI testing in Compose intro
  2. 1:10Need for automated regression
  3. 4:41Setting up UI tests
  4. 8:57Interacting with UI in tests
  5. 16:21Mocking network for UI tests
  6. 26:38Stability in UI test automation
  7. 32:25Infrastructure for UI tests
  8. 35:18Reporting test results
  9. 37:02Key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.