~/talk

Testing Compose

Talkat droidcon EMEA 2020 · 2020-10-08..10-09· [testing, android]
slides:none on file

Compose is built with testing first: more than two thirds of Compose code lives in tests, and the same APIs are available to app authors. Tests use a compose test rule (createAndroidComposeRule or createComposeRule), semantics matchers (and useUnmergedTree), and a clock test rule that can pause clock and advance time deterministically. Screenshot tests capture a single composable and compare goldens reliably (animations produce identical frames), semantics can merge children with mergeAllDescendants true, and Compose interoperates with Espresso without extra synchronization.

AI-written summary · about

  1. 0:00Introduction to Compose testing
  2. 1:55Semantics tree in Compose
  3. 4:47Compose test setup and API
  4. 9:25Test actions and assertions
  5. 9:46Testing isolated components
  6. 12:57Simulating state changes
  7. 15:05Hybrid view and Compose tests
  8. 16:09Q&A session
~/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.