When to Apply: Reference when testing Flutter apps at any level (unit, widget, integration), using testWidgets with WidgetTester, creating golden tests for visual regression, or testing Bloc state management. Triggers on "Flutter", "widget test", "Dart test", "testWidgets", "WidgetTester", "golden test".
Playbook Deep Dive (10 sections): §1 Project Setup & Configuration · §2 Unit Tests — Advanced Patterns · §3 Widget Tests — Production Patterns · §4 Golden Tests (Visual Regression) · §5 Integration Tests · §6 Bloc Testing (with bloc_test) · §7 HTTP Mocking & Provider Testing · §8 CI/CD Integration · §9 Debugging Table · §10 Best Practices
The agent loads from 2 on-demand reference files (advanced-patterns.md, playbook.md) containing detailed implementation guides, cloud integration patterns, debugging tables, and language-specific best practices.