Testing an Android app means more than checking that it works. Its intended design needs to come across various devices like phones, foldables, and tablets, adapting to both light and dark modes at different font sizes and locales. You want every component to behave correctly, with a clean layout and legible text.
This book introduces screenshot testing (also called visual or snapshot testing): an automated approach that records a reference image of the expected design, then compares each test run against it to detect visual changes. It’s a natural complement to functional UI tests, which verify behavior but not appearance.
The book focuses on the fundamental principles that apply to all frameworks. It works through the questions teams actually face: when to use screenshot tests and when not to, what to verify, which frameworks and tools fit your workflow, how to generate tests from preview functions in Jetpack Compose, how to integrate tests into a CI/CD pipeline, and how to optimize the whole process. By the end, you’ll be able to choose the framework that best suits your project and build a safety net that catches visual bugs before release. Every concept is demonstrated with a demo mood tracker application, with all code available online.
It’s written for Android developers and mobile QA engineers responsible for the visual quality of their apps.It’s a good companion for anyone aiming to improve their testing strategies, develop a design system, or transition from manual to automated mobile testing. You don’t need any prior experience with screenshot testing, as the book progresses from fundamental concepts to advanced techniques.
The book is published incrementally. What’s available today already takes you from the fundamentals of screenshot testing through choosing the right tools, setting team standards, writing your first screenshot tests for components and screens, handling asynchronous images, and generating screenshot tests from preview functions. More advanced topics, like testing components and screens against configurations, parameterized testing, screenshot storage strategies, CI/CD integration, AI tools, and Compose Multiplatform will be added chapter by chapter.
Buying now gives you everything published today plus every update as it’s released, at no additional cost.