Mastering Screenshot Testing Libraries for Android: A Hands-On Workshop
summary
Live coding shows runnable examples (activity, RecyclerView view holder, Compose) using Shot, Dropshots, Roborazzi and Paparazzi plus Android UI Testing Utils and Android Studio Electric Eel, with an API 30 Pixel 3a emulator. Demonstrates recording vs verify flows, using pixel copy with elevation or bitmaps to preserve shadows, Roborazzi/Paparazzi for fast GVM tests, Dropshots for on-device runs, explains Android Orchestrator slowdown and CI integration, and tests a failing case with 0.15% threshold and a report showing differing pixels.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:50Workshop agenda
- 2:36What is screenshot testing
- 12:17On-device testing with Shot
- 21:02Testing view holders and composables
- 28:38Drop shots for composables
- 37:24On-device vs GVM comparison
- 41:36GVM testing with Roborazzi
- 56:20Paparazzi for view holders
- 1:02:29Paparazzi for composables
- 1:06:01Testing different configurations
- 1:10:32Locale and accessibility testing
- 1:23:05On-device vs GVM final thoughts
- 1:27:00Recap and resources
related talks
19mSneak Peek at the Screenshot Testing Landscape in 2024
35mEasy screenshot testing with Compose
18mScreenshot testing – The practical talk
38mMastering Screenshot Testing for Android Apps
31mAn Introduction to Effective Snapshot Testing on Android
46mFive Lessons from Implementing Pixel-Perfect Testing of a Design System on Android
33mKeeping your Pixels Perfect �: Paparazzi 1.0
42mEfficient UI testing in Android
