Flutter Testing
MADTeacher/mad-agents-skills
Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins.
A skill your agent uses when creating, writing, fixing, or reviewing tests in a Flutter project.
$ npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install FNOSP/FlyNarwhal flutter-tester --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/FNOSP/FlyNarwhal.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/flutter-tester .claude/skills/flutter-tester && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "flutter-tester" agent skill from https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-tester into .claude/skills/flutter-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-tester", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-testerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install FNOSP/FlyNarwhal flutter-tester --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FNOSP/FlyNarwhal.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/flutter-tester .agents/skills/flutter-tester && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "flutter-tester" agent skill from https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-tester into .agents/skills/flutter-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-tester", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install FNOSP/FlyNarwhal flutter-tester --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FNOSP/FlyNarwhal.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/flutter-tester .cursor/skills/flutter-tester && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "flutter-tester" agent skill from https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-tester into .cursor/skills/flutter-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-tester", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/FNOSP/FlyNarwhal.git --path .agents/skills/flutter-tester--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install FNOSP/FlyNarwhal flutter-tester --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FNOSP/FlyNarwhal.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/flutter-tester .gemini/skills/flutter-tester && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "flutter-tester" agent skill from https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-tester into .gemini/skills/flutter-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-tester", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install FNOSP/FlyNarwhal flutter-testerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/FNOSP/FlyNarwhal.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/flutter-tester .github/skills/flutter-tester && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "flutter-tester" agent skill from https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-tester into .github/skills/flutter-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-tester", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install FNOSP/FlyNarwhal flutter-tester --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FNOSP/FlyNarwhal.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/flutter-tester .opencode/skills/flutter-tester && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "flutter-tester" agent skill from https://github.com/FNOSP/FlyNarwhal/tree/master/.agents/skills/flutter-tester into .opencode/skills/flutter-tester/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "flutter-tester", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
flutter-testerA skill your agent uses when creating, writing, fixing, or reviewing tests in a Flutter project.
Flutter Tester is an agent skill from FNOSP/FlyNarwhal. Use when creating, writing, fixing, or reviewing tests in a Flutter project. Covers unit tests, widget tests, integration tests, Riverpod provider testing, and Mockito mocking. Provides Given-When-Then patterns, layer isolation strategies, and test setup for GetIt, SharedPreferences, and FakeDatabase.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/layer_testing_patterns.md`, `references/riverpod_testing_guide.md` and `references/widget_testing_guide.md`). Compatibility notes: Requires a Flutter project with fluttertest. Works with Riverpod, Mockito, and GetIt. Run dart run buildrunner build to generate mocks after adding…
It sits in Mobile, covering Cross-platform mobile apps, Unit testing and Integration testing. It works with Flutter. The repository describes itself as: 基于 Flutter 框架开发的适用于飞牛影视的跨平台客户端. The licence is AGPL-3.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c94d847. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
flutterdartFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires a Flutter project with flutter_test. Works with Riverpod, Mockito, and GetIt. Run `dart run build_runner build` to generate mocks after adding @GenerateMocks annotations. Compatible with FVM.
From compatibility in the SKILL.md frontmatter.
Flutter Tester loads about 1.4k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 79 tokens; SKILL.md has 405 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from FNOSP/FlyNarwhal at commit c94d847, republished under its AGPL-3.0 licence (© FNOSP). 405 words, ~1,444 tokens.
.claude/skills/flutter-tester/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.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.
Load the relevant file based on what you're testing:
| What you're testing | Reference file |
|---|---|
| Repository, DAO, Service logic | references/layer_testing_patterns.md |
| Widget UI, interactions, dialogs, navigation | references/widget_testing_guide.md |
| Riverpod provider state, mutations, lifecycle | references/riverpod_testing_guide.md |
Test each layer against its own mocked dependencies:
| Layer | What to test | What to mock |
|---|---|---|
| Repository | Data coordination between sources | DAOs, APIs, Logger |
| DAO | Database CRUD operations | Use real in-memory DB, mock Logger |
| Provider | State management and transitions | Services, Repositories |
| Service | Business logic and workflows | Repositories, Network clients |
| Widget | UI behaviour and interactions | Provider dependencies (via overrides) |
test('Given valid data, When fetchUsers called, Then returns user list', () async {
// Arrange (Given)
when(mockDAO.fetchAll()).thenAnswer((_) async => expectedUsers);
// Act (When)
final result = await repository.fetchUsers();
// Assert (Then)
expect(result, equals(expectedUsers));
verify(mockDAO.fetchAll()).called(1);
});group('UserRepository', () {
group('fetchUsers', () {
setUp(() { /* init mocks, register with GetIt */ });
tearDown(() => GetIt.I.reset()); // Always reset GetIt
test('Given success ... When ... Then ...', () { });
test('Given error ... When ... Then ...', () { });
});
});@GenerateMocks([IUserDAO, IUserAPI, ILogger])
void main() { ... }Run dart run build_runner build after modifying @GenerateMocks.
setUp(() {
mockDAO = MockIUserDAO();
mockLogger = MockILogger();
GetIt.I
..registerSingleton<IUserDAO>(mockDAO)
..registerSingleton<ILogger>(mockLogger);
});
tearDown(() => GetIt.I.reset()); // Critical — always resetclass FakeLogger extends ILogger) — silent stubs; use when you don't need to verify callsMockILogger) — use when you need when(), verify(), or thenThrow()| Scenario | Key pattern |
|---|---|
| Test a repository | Mock DAO + API → inject into repository constructor |
| Test a DAO | FakeDatabase or openInMemoryDatabase() in setUp, delete table in tearDown |
| Test a Riverpod provider | createContainer(overrides: [serviceProvider.overrideWith(...)]) |
| Test a widget | Set screen size, use find.byKey(), call pumpAndSettle() |
| Test a loading state | Use Completer, pump() to assert loading, complete, pump() again |
| Test platform-specific UI | debugDefaultTargetPlatformOverride = TargetPlatform.iOS — reset after |
| Test GoRouter navigation | FakeGoRouter + MockGoRouterProvider |
flutter test --coverage # All tests with coverage
flutter test test/path/to/test.dart # Specific file
flutter test --plain-name "Given valid data" # Filter by name
genhtml coverage/lcov.info -o coverage/html # Generate HTML coverage report
# Prefix any command with `fvm` if using Flutter Version Manager| Mistake | Fix |
|---|---|
| Mocking a provider directly | Override its dependencies: provider.overrideWith(...) |
Missing GetIt.I.reset() in tearDown | Tests pollute each other — always reset |
await Future.delayed() in tests | Use await tester.pumpAndSettle() or Completer instead |
| Finding widgets by text string | Use find.byKey(const Key('name')) — stable across text changes |
| No screen size in widget tests | Add tester.view.physicalSize = const Size(1000, 1000) |
Not resetting debugDefaultTargetPlatformOverride | Set to null at the end of the test |
tearDown() without a lambda | Write tearDown(() async { ... }) not tearDown() async { ... } |
Setup & Mocking:
GetIt.I.reset() in tearDowntearDowntearDownWidget Tests:
find.byKey()physicalSize + devicePixelRatio)debugDefaultTargetPlatformOverride = null)Test Coverage:
Future.delayed)Code Quality:
verify() or verifyNever() where appropriate© FNOSP, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in .agents/skills/flutter-tester of FNOSP/FlyNarwhal.
Open the folder on GitHubat commit c94d847
Flutter Tester next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Flutter Tester this skillFNOSP/FlyNarwhal | 495 | — | ~1.4k | Automated safety check: Pass | AGPL-3.0 | |
| Flutter TestingMADTeacher/mad-agents-skills | 110 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Flutter Testing Appsbtwld/superdeck | 130 | — | ~2.2k | Automated safety check: Pass | BSD-3-Clause | |
| BlocVeryGoodOpenSource/vgv-ai-flutter-plugin | 169 | — | ~2k | Automated safety check: Pass | MIT | |
| Flutter Testingmakifbaysal/tasktrooper | 109 | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| TestingVeryGoodOpenSource/vgv-ai-flutter-plugin | 169 | — | ~3.2k | Automated safety check: Pass | MIT |
MADTeacher/mad-agents-skills
Write, fix, review, debug, and validate Flutter tests for apps, packages, and plugins.
btwld/superdeck
Implements unit, widget, and integration tests for a Flutter app.
VeryGoodOpenSource/vgv-ai-flutter-plugin
Best practices for Bloc state management in Flutter/Dart, covering Cubit versus Bloc, event and state naming, sealed classes with Equatable, the Page/View split with BlocProvider, BlocBuilder…
makifbaysal/tasktrooper
A skill your agent uses when testing Flutter code - unit tests for logic, widget tests for UI behavior, golden tests for appearance, the multi-size/text-scale/dark matrix, accessibility guidelines…
VeryGoodOpenSource/vgv-ai-flutter-plugin
Best practices for Dart unit tests, Flutter widget tests, and golden file tests, covering group and test naming, setUp lifecycle and isolation, mocking with package:mocktail, and the shared pumpApp…
bladeofgod/flutter-ai-harness
适用:编写或审查 Dart 单测、Flutter Widget 测试、Route 测试、集成测试、Fake 或 Mocktail Mock。不适用:Kotlin/Swift 测试框架,也不替代生产实现。触发词:testWidgets、flutter test、Mocktail、Fake、Get.reset、integrationtest、coverage、flaky。
FNOSP/FlyNarwhal
A skill your agent uses when the user wants to create, generate, or set up a GitHub Actions workflow.
FNOSP/FlyNarwhal
Automate GitHub workflows with AI assistance. An agent skill from FNOSP/FlyNarwhal.
FNOSP/FlyNarwhal
A skill your agent uses when building cross-platform applications with Flutter 3+ and Dart.
FNOSP/FlyNarwhal
A skill your agent uses when publishing a new release of FlyNarwhal desktop.
FNOSP/FlyNarwhal
A skill your agent uses when adding, modifying, or refactoring any remote/HTTP API call in this Flutter project.
FNOSP/FlyNarwhal
A skill your agent uses when building iOS/macOS applications with Swift 5.9+, SwiftUI, or async/await concurrency.
Works with
Categories
A skill your agent uses when creating, writing, fixing, or reviewing tests in a Flutter project. Flutter Tester is an agent skill from FNOSP/FlyNarwhal. Use when creating, writing, fixing, or reviewing tests in a Flutter project.
Flutter Tester fits situations like: reviewing tests in a Flutter project; tasks that involve Cross-platform mobile apps; tasks that involve Unit testing.
Run `npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a claude-code`. Or copy the skill folder (.agents/skills/flutter-tester in FNOSP/FlyNarwhal) into .claude/skills/flutter-tester in your project. Claude Code loads it when a task matches its description.
Run `npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a codex`. Or copy the skill folder (.agents/skills/flutter-tester in FNOSP/FlyNarwhal) into .agents/skills/flutter-tester in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FNOSP/FlyNarwhal --skill flutter-tester -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flutter-tester, .gemini/skills/flutter-tester, .github/skills/flutter-tester and .opencode/skills/flutter-tester in your project.
Going by SKILL.md and its folder, Flutter Tester needs the command-line tools its instructions call (flutter and dart). Compatibility (from SKILL.md): Requires a Flutter project with flutter_test. Works with Riverpod, Mockito, and GetIt. Run `dart run build_runner build` to generate mocks after adding @GenerateMocks annotations. Compatible with FVM..
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Flutter Tester is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 12k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Flutter Tester: Flutter Testing (MADTeacher/mad-agents-skills, 110 stars), Flutter Testing Apps (btwld/superdeck, 130 stars), Bloc (VeryGoodOpenSource/vgv-ai-flutter-plugin, 169 stars) and Flutter Testing (makifbaysal/tasktrooper, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
FNOSP (a GitHub organization) maintains it in FNOSP/FlyNarwhal, which has 495 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 6, 2026.
Source: FNOSP/FlyNarwhal on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.