flutter-tests

flutter-tests is a skill for Claude Code, Codex from yendangn/flutter-app-builder. It costs 70 tokens per session (469 once invoked), scanned A, original, MIT.

A set of instructions for testing Flutter applications, including business logic, user interfaces, visual output, and full app flows. Flutter is Google's toolkit for building apps from one codebase.

In plain words
What is it for?
Use it to write tests for BLoCs, Cubits, use cases, repositories, widgets, golden images, integration flows, and test coverage.
Why use it?
It gives consistent testing patterns for common Flutter components and helps avoid unreliable tests, incorrect mocks, and missed state changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write tests for BLoCs, Cubits, use cases, repositories, widgets, golden images, integration flows, and test coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yendangn/flutter-app-builder/flutter-tests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yendangn/flutter-app-builder --skill flutter-tests
Clone the repo
git clone --depth 1 https://github.com/yendangn/flutter-app-builder

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/yendangn/flutter-app-builder/flutter-tests/github.svg)](https://agentmods.dev/skills/yendangn/flutter-app-builder/flutter-tests)
Your own site
<a href="https://agentmods.dev/skills/yendangn/flutter-app-builder/flutter-tests"><img src="https://agentmods.dev/badge/skills/yendangn/flutter-app-builder/flutter-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/yendangn/flutter-app-builder/flutter-tests"><img src="https://agentmods.dev/badge/skills/yendangn/flutter-app-builder/flutter-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00469
Opus 5.5 $0.00028 $0.00188
Sonnet 5.5 $0.00014 $0.00094
Haiku 4.5 $0.00007 $0.00047

Measured 1mo ago against content hash b664fb0745b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flutter-tests/SKILL.md · 40 lines

What it actually says

Flutter Tests

Full reference: template.md

Key rules

Cubit / BLoC tests

  • Use bloc_test (blocTest<C, S>(...)) for all cubit tests. Never test cubits with pump() in widget tests.
  • Mock dependencies with mocktail. Register fallback values in setUpAll for any custom type used with any().
  • Use InMemoryStorage for HydratedCubit tests — never real disk.
  • Test state sequence exactly: expect: () => [isA<Loading>(), isA<Loaded>()].

Use case / Repository tests

  • Use cases are thin wrappers — verify delegation (correct method called, correct params, result passed through).
  • Repository tests: mock data sources, test online/offline paths, error wrapping (FailureException rethrown, generic → UnknownFailure).

Widget tests

  • pumpApp(widget) helper sets up MaterialApp, theme, localization, and test DI.
  • Test user interactions with tester.tap(find.byKey(...)) + tester.pump().
  • BlocProvider wraps the widget with a pre-configured mock cubit.

Golden tests

  • One golden per component state. Run flutter test --update-goldens for intentional visual changes.
  • GoldenToolkit / MatchesGoldenFile for multi-device golden comparison.

Coverage gate

  • scripts/check_coverage.sh <threshold> enforces coverage on presentation+core layers.
  • Exclude: generated files (*.g.dart), data sources, DI modules, platform wrappers.
  • Target: ≥ 80% on cubit + state + core layers.

Co-load with

  • flutter-ci — coverage gate runs in CI
  • flutter-base-classes — BaseCubit, safeEmit behavior to test
Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 40 lines · 70 tokens per session scan A b664fb0745b7

Subscribe to this mod's changes

flutter-tests is a skill published in the GitHub repository yendangn/flutter-app-builder (6 stars, last pushed 3mo ago), licensed MIT. It adds 70 tokens to every session and 469 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mobiai-android-testing

Use when writing or running tests in an Android project — unit tests, UI tests, choosing the right framework and patterns.

ArisGuimera/MobiAI-Core · 30 tokens

flutter-testing-skill

Generates Flutter widget tests, integration tests, and golden tests in Dart. Supports local execution and TestMu AI cloud for real device testing. Use when user mentions "Flutter", "widget test", "WidgetTester", "testWidgets", "fluttertest", "integrationtest". Triggers on: "Flutter", "widget test", "Dart test"…

LambdaTest/agent-skills · 89 tokens

ios-testing-patterns

XCTest and XCUITest execution workflows and flaky test detection patterns.

conorluddy/xclaude-plugin · 18 tokens

testing-setup

Analyze and create a testing strategy for Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.

ArisGuimera/MobiAI-Core · 42 tokens

cometchat-flutter-v6-testing

Test a Flutter app that uses the CometChat UI Kit — what is worth testing versus what belongs to the kit, mocking the SDK boundary, widget tests around chat screens, and integration/CI setup. Triggers: 'test my cometchat integration', 'mock cometchat in flutter tests', 'widget test chat screen', 'cometchat test setup'.

cometchat/cometchat-skills · 83 tokens

cometchat-ios-testing

Test an iOS app that embeds CometChat — what to mock vs exercise for real, keeping the CometChatSDK off the network in unit tests, waiting out the async init→login gate, and a lean XCUITest smoke. Triggers: 'test cometchat ios', 'unit test chat swift', 'mock cometchatsdk', 'xcuitest for chat', 'how do I test cometchat…

cometchat/cometchat-skills · 95 tokens