What problem does it solve? Writing reliable Dart and Flutter tests requires choosing the right framework, mocking strategy, and test tier for each scenario, and mistakes lead to flaky or meaningless tests. This Skill provides a structured workflow for designing, generating, and debugging unit, widget, BLoC, and integration tests. ## Core Features & Use Cases - Phased Test Generation: Follows a five-phase protocol covering context analysis, strategy selection, test case design, code generation, and verification. - Framework-Specific Patterns: Includes ready-to-use examples for unit tests, widget tests with flutter_test, mockito and mocktail mocking, bloc_test state testing, and integration tests. - Flaky Test Guardrails: Enforces best practices like pumpAndSettle, FakeAsync, and MockClient to eliminate non-deterministic failures. - Use Case: When asked to add tests for a Flutter login screen, the Skill inspects the widget tree, generates testWidgets cases with find.byKey discovery, and provides the exact flutter test commands to run and measure coverage. ## Quick Start Ask the agent to write widget tests for your Flutter login screen using flutter_test and mockito, then run flutter test --coverage to verify.