flutter-add-integration-test

flutter-add-integration-test is a skill for Claude Code from flutter/agent-plugins. It costs 48 tokens per session (1,671 once invoked), scanned A, original, BSD-3-Clause.

A guide to Flutter integration tests, which run an app and check complete user flows across its interface. It uses Flutter Driver tools and the `integration_test` package to turn explored interactions into repeatable tests.

In plain words
What is it for?
Use it to set up integration testing, explore an app, target important controls with keys, automate user journeys, and save those journeys as permanent tests.
Why use it?
It helps catch problems that only appear when several screens, actions, or app components work together.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dart-flutter plugin — 31 skills shipped together

Good fit Use it to set up integration testing, explore an app, target important controls with keys, automate user journeys, and save those journeys as permanent tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flutter/agent-plugins/flutter-add-integration-test
About the project

Flutter Agent Plugins is a collection maintained by the Flutter team that extends coding agents with Flutter-specific skills, rules, MCP configuration, and bundled workflows. Flutter developers use it to help agents perform tasks such as testing and building widget previews. The catalogue entries are components of these agent plugins.

flutter/agent-plugins · 3,222 stars · on GitHub

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 flutter/agent-plugins --skill flutter-add-integration-test
Clone the repo
git clone --depth 1 https://github.com/flutter/agent-plugins

Made for: Claude Code.

Or install dart-flutter, the plugin that ships this one along with the rest of its 31 skills.

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-add-integration-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-add-integration-test/github.svg)](https://agentmods.dev/skills/flutter/agent-plugins/flutter-add-integration-test)
Your own site
<a href="https://agentmods.dev/skills/flutter/agent-plugins/flutter-add-integration-test"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-add-integration-test/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-add-integration-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/flutter/agent-plugins/flutter-add-integration-test"><img src="https://agentmods.dev/badge/skills/flutter/agent-plugins/flutter-add-integration-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,671 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. Third-party audits
  • Socket pass 13 Jul 2026
  • Snyk pass 13 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00048 $0.01671
Opus 5.5 $0.00019 $0.00668
Sonnet 5.5 $0.00010 $0.00334
Haiku 4.5 $0.00005 $0.00167

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

Security

Grade A, and why

flutter-add-integration-test 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 3mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/flutter-add-integration-test/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implementing Flutter Integration Tests

Contents

Project Setup and Dependencies

Configure the project to support integration testing and Flutter Driver extensions.

  1. Add required development dependencies to pubspec.yaml:
    flutter pub add 'dev:integration_test:{"sdk":"flutter"}'
    flutter pub add 'dev:flutter_test:{"sdk":"flutter"}'
    
  2. Enable the Flutter Driver extension in your application entry point (typically lib/main.dart or a dedicated lib/main_test.dart):
    • Import package:flutter_driver/driver_extension.dart.
    • Call enableFlutterDriverExtension(); before runApp().
  3. Add Key parameters (e.g., ValueKey('login_button')) to critical widgets in the application code to ensure reliable targeting during tests.

Interactive Exploration via MCP

Use the Dart/Flutter MCP server tools to interactively explore and manipulate the application state before writing static tests.

  • Launch: Execute launch_app with target: "lib/main_test.dart" to start the application and acquire the DTD URI.
  • Inspect: Execute get_widget_tree to discover available Keys, Text nodes, and widget Types.
  • Interact: Execute tap, enter_text, and scroll to simulate user flows.
  • Wait: Always execute waitFor or verify state with get_health when navigating or triggering animations.
  • Troubleshoot Unmounted Widgets: If a widget is not found in the tree, it may be lazily loaded in a SliverList or ListView. Execute scroll or scrollIntoView to force the widget to mount before interacting with it.

Test Authoring Guidelines

Structure integration tests using the flutter_test API paradigm.

Read the full file on GitHub · 164 lines

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. 3mo ago First seen · 164 lines · 48 tokens per session scan A 8d81b053c5fd

Subscribe to this mod's changes

flutter-add-integration-test is a skill published in the GitHub repository flutter/agent-plugins (3,222 stars, last pushed 12d ago), licensed BSD-3-Clause. It adds 48 tokens to every session and 1,671 once invoked, about $0.0002 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-30.

Related

flutter-add-integration-test compared with skills from other repositories

flutter-add-integration-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-add-integration-testflutter/agent-pluginsSkill3.2k12d agoBSD-3-ClauseA48Claude Code
android-ui-journey-testingsickn33/agentic-awesome-skillsSkill51ktodayMITA27Claude Code
android_ui_verificationsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
solopi-aialipay/SoloPiSkill6.8ktodayApache-2.0A82Codex
public-transitchromium/chromiumSkill25ktodayBSD-3-ClauseA53Claude Code, Codex
eas-simulatorexpo/skillsSkill4.3ktodayMITA251Claude Code, Codex
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code