~/talk

5 ways Compose improves UI testing

Talkat Android Dev Summit 2022 · 2022-10-24..11-14· [android, testing]
slides:none on file

Compose testing lets you launch a single composable with setContent (no full app required) and rely on automatic synchronization instead of Thread.sleep so tests run faster and more reliably. Tests can pause and move the main clock with advanceTimeBy (set autoAdvance = false) to assert animations or timers, use waitUntil to block until a UI condition appears for end-to-end scenarios, and use StateRestorationTester (or activityScenario.recreate) to verify saved state across configuration changes.

AI-written summary · about

  1. 0:00Start
  2. 0:06android dev summit
  3. 0:46Testing in isolation
  4. 1:27Automatic synchronization
  5. 3:53Verifying state restoration
~/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.