~/talk

Testing Jetpack Compose UI

Talkat droidcon San Francisco 2022 · 2022-06-02..06-03· [android, testing]
links:none on file
slides:none on file

Describes concrete recipes: use the Compose testing library with test tag instead of view IDs, set up either createAndroidComposeRule for activity flows or createComposeRule for isolated UI unit tests, find nodes with onNode/onNodeWithTag, drive UI with performTextInput and performClick, and verify with assertions like assertTextEquals and isEnabled. Shows a button-click example and a hybrid flow where Espresso clicks an XML view then Compose assertions confirm the migrated screen state.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:33Jetpack Compose vs XML
  3. 10:07Simple button click test
  4. 19:03Testing hybrid apps
  5. 28:41Testing in isolation
  6. 34:00Recap and conclusions
~/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.