Robolectric setup
Robolectric supports screenshot testing via Robolectric Native graphics (RNG) since 4.10, and libraries like Roborazzi, rely on it.
With AndroidUiTestingUtils, you can configure your Robolectric screenshot tests similar to how you'd do it with on-device tests!
Moreover, it offers some utility methods to generate Robolectric screenshot tests for different screen sizes and configurations.
For that, add the following dependencies in your build.gradle
:
Application Modules
If you get any error due to "Activity not found" in your application module, add the following to your debug/manifest
Last updated