Description
Roborazzi is an open-source screenshot testing library for Android that runs on the JVM with Robolectric. Screenshot tests catch visual problems and check that an app looks and behaves as users will see it, often faster than writing many assertions. JVM tests, also called local tests, run on a developer machine or CI instead of on devices or emulators, which avoids many flaky failures caused by device environments. Paparazzi already captures screens on the JVM but does not work with Robolectric; Roborazzi fills that gap, so tests can run with Hilt and interact with components while taking screenshots. It now also supports Robolectric Native Graphics. The README includes an example of how the DroidKaigi 2023 app built Roborazzi into its test architecture from the start of development.…
Highlights
- Screenshot testing for Android on the JVM
- Integrates with Robolectric
- Works with Hilt and component interaction
- Supports Robolectric Native Graphics
- Runs on developer machines or CI
Ratings & Reviews
No ratings yet
Be the first to rate Roborazzi.
People also visit
Roborazzi FAQ
What is Roborazzi?
A library that takes screenshots during JVM-based Android tests using Robolectric, so you can validate how your app looks.
How is it different from Paparazzi?
Paparazzi is not compatible with Robolectric. Roborazzi integrates with it, allowing tests that use Hilt and interact with components.
Why run screenshot tests on the JVM?
Local tests run on your PC or CI and avoid the frequent, hard-to-reproduce failures that device and emulator tests can have.
Is there a real-world example?
Yes, the README describes how the DroidKaigi 2023 app used Roborazzi in its architecture from early development.
What are the best Roborazzi alternatives?
Popular alternatives to Roborazzi include Lost Pixel, VibeView and VizDiff. See all Roborazzi alternatives











