~/talk

An Introduction to Effective Snapshot Testing on Android

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [testing, android]
slides:none on file

Snapshot tests inflate views, record pixel‑perfect images and compare them on CI, with a separate record vs verify workflow; mismatched emulator API/screen/resolution causes false failures. Big teams favor this — Airbnb ≈ 30,000 snapshot tests, Uber thousands — because snapshots catch visual regressions (font scaling broke a dialog, overlap and clipped bullets) far faster than Espresso. Use small view units, parameterized tests to inject extreme mock data, group happy/unhappy cases and run with frameworks like Shot, Paparazzi, Testify, CashApp to keep feedback fast.

AI-written summary · about

  1. 0:00Introduction to snapshot testing
  2. 1:30Why big tech uses snapshot tests
  3. 3:39UI tests vs snapshot tests
  4. 4:22Visual bugs snapshot testing catches
  5. 6:52Layout validation limitations
  6. 8:57User font size impact
  7. 10:00How snapshot testing works
  8. 14:55Snapshot testing process complexity
  9. 15:17Effective snapshot testing tips
  10. 17:47Avoid full screen snapshot testing
  11. 20:15Breaking layouts for testing
  12. 21:18Demo snapshot test setup
  13. 23:26Injecting mock data with parameterized tests
  14. 25:12Happy vs unhappy path tests
  15. 27:00Grouping tests by relevance
  16. 28:46Optimizing build times
  17. 30:11Summary and key advice
~/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.