~/talk

Automating Screenshot Testing in Compose Multiplatform

Talkat droidcon Berlin 2025 · 2025-09-24..09-26· [frontend-architecture, testing]
slides:none on file

Shows how to turn Compose Multiplatform @Previews into automated screenshot tests using an actual repo and live demo, generating files for Android, common and desktop previews with composable preview scanner and wiring them into Roborazzi or Paparazzi. Demonstrates recording and verify tasks, animation captures at 0ms/900ms/1000ms, and failing diffs, with generated tests created quickly. Library stats: ~275 stars and ~150,000 downloads/month. Desktop needs an extra annotation workaround; Android animation timing works via the Roborazzi plugin.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 1:17Screenshot testing concepts
  3. 5:07Composable preview scanner
  4. 8:48Preview types in CMP
  5. 12:36Android demo and automation
  6. 23:41Desktop testing implementation
  7. 33:32Common module testing
  8. 40:21Recap and conclusion
~/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.