android-screenshot-testing
Installation
SKILL.md
Android Screenshot Testing πΈπ‘οΈ
Expert techniques for implementing visual regression testing to ensure UI consistency and catch unintended layout changes automatically.
β‘ When to Use
- UI Consistency: Verifying complex layouts across screen sizes.
- Visual Regression: Catching pixel-level changes in CI/CD.
- Design System Audit: Verifying components against design specs.
- Screenshot Automation: Generating millions of UI variants (Dark mode, RTL, Font scales).
- Test-Driven Design: Testing UI before deploying to devices.
ποΈ Core Tools
1. Paparazzi (Cash App)
- Benefit: Runs entirely on the JVM (Host). NO DEVICE/EMULATOR REQUIRED.
- Use Case: Testing Jetpack Compose components fast and frequently.
- Gradle Task:
./gradlew recordPaparazziDebug/./gradlew verifyPaparazziDebug