This is a comprehensive testing guide for Flutter projects that covers the full stack: unit tests, widget tests, integration tests, and Riverpod provider testing. It pushes a clear architecture where you test each layer in isolation using Given-When-Then structure, mock dependencies but never providers (override them instead), and always reset GetIt in tearDown. The reference tables are genuinely useful, especially the quick lookup for what to mock at each layer and common mistakes like forgetting to set screen size in widget tests or using Future.delayed instead of pumpAndSettle. If your Flutter codebase uses Riverpod and GetIt, this will save you from rewriting the same test setup patterns.

skills.sh installs
439
GitHub stars
68
last updated
Aug 21, 2026

Install

$ npx -y skills add harishwarrior/flutter-claude-skills --skill flutter-tester --agent claude-code

Installs into .claude/skills of the current project.

Files

Flutter Tester

Requirements

  • Flutter project with flutter_test dependency
  • Works with Riverpod, Mockito, and GetIt
  • Run dart run build_runner build to generate mocks after adding @GenerateMocks annotations
  • Compatible with FVM (fvm flutter test instead of flutter test)

Overview

Test each architectural layer in isolation using Given-When-Then structure. Always test both success and error paths. Never mock providers — override their dependencies instead.

Reference Files

Load the relevant file based on what you're testing:

What you're testingReference file
Repository, DAO, Service logicreferences/layer_testing_patterns.md
Widget UI, interactions, dialogs, navigationreferences/widget_testing_guide.md
Riverpod provider state, mutations, lifecyclereferences/riverpod_testing_guide.md

Core Principles

1. Layer Isolation

Test each layer against its own mocked dependencies:

Sponsors

Details

Repository
github.com/harishwarrior/flutter-claude-skills
Categories
Frontend Development, Testing & QA, Documentation, Mobile Development
First seen
Jun 3, 2026

More from harishwarrior/flutter-claude-skills

All 2
1secondsky avatarmobile-app-debuggingsecondsky/claude-skillsMobile app debugging for iOS, Android, cross-platform frameworks. Use for crashes, memory leaks, performance issues, network problems, or encountering Xcode ins439skills.sh installs
2bobmatnyc avatarwordpress-plugin-fundamentalsbobmatnyc/claude-mpm-skillsModern WordPress plugin development with PHP 8.3+, OOP architecture, hooks system, database interactions, and Settings API434skills.sh installs
3aj-geddes avatarserver-side-renderingaj-geddes/useful-ai-promptsImplement server-side rendering with template engines, view layers, and dynamic content generation. Use when building server-rendered applications, implementing433skills.sh installs
4davila7 avatarvercel-deploymentdavila7/claude-code-templatesExpert knowledge for deploying to Vercel with Next.js Use when: vercel, deploy, deployment, hosting, production.433skills.sh installs
5pedronauck avatarelectron-builderpedronauck/skillsComprehensive guide for electron-builder (v26.x) packaging, code signing, auto-updates, and release workflows. Use when: (1) configuring electron-builder builds433skills.sh installs
6guia-matthieu avatarheadline-formulasguia-matthieu/clawfu-skills25+ proven headline formulas that stop the scroll, capture attention, and drive clicks. Templates and examples for every situation. Use when: Writing headlines 431skills.sh installs