~/talk

Composing With Confidence

Talkat droidcon New York 2022 · 2022-09-01..09-02· [android, testing]
slides:none on file

Shows how to test Jetpack Compose UIs using the Compose testing APIs: use createComposeRule or createAndroidComposeRule to render content, find nodes with onNodeWithText/onNodeWithTag/onNodeWithContentDescription, assert with assertIsEnabled/assertTextEquals and perform actions like performClick and performTextInput. Recommends using test tags and extracting test robots for maintainable tests, covers screenshot testing with Shot and fast JVM snapshots via Paparazzi, and links a sample repo with ~100% coverage.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Why test Jetpack Compose
  3. 2:50Setting up Compose tests
  4. 3:53Finding components in tests
  5. 7:42Assertions and actions
  6. 9:47Using test tags
  7. 11:32Testing individual components
  8. 15:46Testing a full screen
  9. 18:58Introducing test robots
  10. 24:36Snapshot testing options
  11. 26:20Paparazzi for fast screenshots
  12. 28:05Sample project overview
~/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.