Flutter Testing

Covers Flutter testing across all three layers: unit tests (business logic, ViewModels, repositories), widget tests (UI rendering, interactions, golden regression), and integration/E2E tests (full app flows, native OS interactions). Use this skill when writing any Flutter test, setting up mocking with mocktail or mockito, implementing golden file tests, debugging async failures (pumpAndSettle timeouts, Timer leaks, FakeAsync deadlocks), fixing cross-platform golden pixel diffs in CI/CD, testing state management (Riverpod/BLoC/Provider), handling permission dialogs or native system UI with Patrol, or troubleshooting MediaQuery/Theme missing errors in widget tests.

Poorgramer-Zack f111fa0 5 files · 50.3 KB Updated

File contents

Poorgramer-Zack/dart-expert-skills/tree/main/skills/flutter-testing commit f111fa0377

Frequently asked questions

npx skillmds@latest add poorgramer-zack/flutter-testing