When to Apply: Reference when writing fast, reliable Android UI tests that run inside the app process, using onView with ViewMatchers, testing RecyclerViews, or handling async operations with Idling Resources. Triggers on "Espresso", "onView", "ViewMatchers", "Android UI test", "instrumentation".
Playbook Deep Dive (10 sections): §1 Project Setup · §2 Test Structure & Lifecycle · §3 Custom Matchers & ViewActions · §4 RecyclerView Testing · §5 Idling Resources · §6 Intent Testing · §7 MockWebServer for API Tests · §8 CI/CD Integration · §9 Debugging Table · §10 Best Practices
The agent loads from 3 on-demand reference files (advanced-patterns.md, cloud-integration.md, playbook.md) containing detailed implementation guides, cloud integration patterns, debugging tables, and language-specific best practices.