flutter-testing
Installation
SKILL.md
Flutter Testing
Test observable behavior at the cheapest layer that provides confidence.
Choose the layer
- Unit tests: pure logic, state transitions, repositories, parsing, and failure policy.
- Widget tests: rendering, semantics, interaction, focus, navigation wiring, and state-to-UI behavior.
- Golden tests: stable visual contracts where platform/font control makes comparison meaningful.
- Integration tests: critical flows, plugin integration, performance, and behavior requiring a real target.
Do not replace behavior assertions with implementation details such as private method calls or exact widget-tree shape.