

Episode 169: Testing
6 snips Jul 5, 2021
Adarsh Fernando, a Product Manager on the Android Studio team, and Arif Sukoco, a specialist in testing features, dive into the exciting advancements in Android testing. They discuss automated test snapshots that allow developers to analyze failures efficiently. The new Test Matrix tool improves testing across multiple devices, while Gradle-managed virtual devices streamline workflows. They also tackle the challenges of UI testing and the importance of robust testing strategies, emphasizing how innovation is revolutionizing the testing landscape for Android developers.
AI Snips
Chapters
Transcript
Episode notes
Unified Gradle Test Runner
- Android Studio now runs instrumented tests through a unified Gradle process for consistency.
- This eliminates discrepancies between test results from Studio and command-line Gradle runs.
Emulator Snapshots for Failures
- The emulator automatically captures snapshots when tests fail, letting you debug failures precisely.
- You can load these snapshots later with breakpoints at failure points for detailed inspection.
Limit Snapshot Storage
- Configure a maximum number of snapshots to avoid consuming excessive disk space.
- Defaults to two snapshots, which is ideal for CI environments to balance resource usage.