~/talk

All your Compose @Previews to screenshot tests without instrumentation

Talkat DroidKaigi 2022 · 2022-10-05..10-07· [testing, android]
links:none on file
slides:none on file

Shows how to turn Compose @Preview methods into automated screenshot tests using Paparazzi (no emulator or instrumentation) and Airbnb Showcase to generate tests, plus Google’s TestParameterInjector for dark mode/font-scale variants. Uses Gradle tasks recordPaparazzi / verifyPaparazzi and a Pixel 5 config to produce screenshots in seconds, integrates with GitHub Actions to fail PRs and post diffs, and reports a real project with ~300 screenshots taking ~12 MB stored in repo.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Screenshot testing benefits
  3. 3:39Screenshot vs UI tests
  4. 5:25Traditional screenshot hurdles
  5. 6:31Compose Previews simplify testing
  6. 8:22UI component showcase
  7. 10:57Paparazzi for fast screenshots
  8. 11:40Parameter Injector for variants
  9. 12:22Code walkthrough integration
  10. 13:25Running screenshot tests
  11. 14:32CI with GitHub Actions
  12. 18:28Summary
  13. 20:14Bonus: Image storage iOS
~/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.