What problem does it solve?
This Skill helps you write, review, and improve Flutter and Dart tests that actually catch regressions instead of merely confirming mocked behavior or trivial library guarantees.
Core Features & Use Cases
- Test selection guidance: Choose between unit tests and widget tests based on whether you are validating business logic, state transitions, rendering, or user interaction.
- Quality and flakiness review: Check whether tests are meaningful, focused, stable, and capable of failing when the real code breaks.
- Flutter test structure: Organize test files with
group(), use setUp and tearDown, prefer descriptive "should" names, and mirror the lib/ structure under test/.
- Mocking best practices: Use
mocktail at repository boundaries and verify state changes through real logic rather than mock-only expectations.
- Use case: A developer adds a new login flow and needs a widget test for the error state plus a unit test for the cubit transitions; this Skill helps design both tests correctly and keep them maintainable.
Quick Start
Use this skill to review my Flutter test file and rewrite it so it follows the recommended structure, assertions, and mocking practices.