~/talk

Testing Jetpack Compose UI

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [testing]
links:none on file
slides:none on file

Claims that Jetpack Compose testing differs from View testing: no view hierarchy, declarative UI, no IDs but Modifier.testTag and semantic properties, and tests run synchronized by default. Uses the Compose testing library (versus old Espresso flows), exercising UI with find/matchers, performClick and assertIsDisplayed, verifying text and navigation. Demonstrates setting initial state for composables in tests. Notes a real-world issue with singleInstance activities and fixes by providing a test-specific manifest or build variant.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Compose vs traditional UI
  3. 8:53Testing button clicks
  4. 16:26Navigation and state testing
  5. 22:54Reusing test composables
  6. 26:06Fixing instrumentation issues
  7. 29:00Q&A
~/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.