# Flutter add integration test

> Flutter add integration test is an open-source agent skill for developer tools. Sets up Flutter integration tests and turns MCP-driven UI exploration into repeatable. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/flutter/agent-plugins/tree/main/skills/flutter-add-integration-test
- **Repository:** https://github.com/flutter/agent-plugins
- **GitHub stars:** 3,223
- **License:** BSD-3-Clause
- **Skill name:** flutter-add-integration-test
- **Collection:** https://github.com/flutter/agent-plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

This skill walks an agent through adding the integration_test package and Flutter Driver extension to a Flutter project, then using the Dart/Flutter MCP server to launch the app, inspect the widget tree and drive taps, text entry and scrolling. Flows explored that way are meant to be saved as permanent test files in an integration_test directory, with a host driver script under test_driver.

The guidance covers writing WidgetTester-based tests with ValueKey targeting, settling animations, scrolling off-screen items into view, and recovering from timeouts or missing widgets. It also includes the legacy flutter_driver API for older suites, and commands for running tests on Chrome, headless web, local Android and Firebase Test Lab, plus an optional performance profiling driver.

The skill expects a Flutter project with pubspec.yaml access, the Dart/Flutter MCP server for the interactive steps, and chromedriver when targeting Chrome.

## When your agent uses it

> Configures Flutter Driver for app interaction and converts MCP actions into permanent integration tests. Use when adding integration testing to a project, exploring UI components via MCP, or automating user flows with the integration_test package.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/flutter/agent-plugins/tree/HEAD/skills/flutter-add-integration-test)
- [License: BSD-3-Clause](https://github.com/flutter/agent-plugins/tree/HEAD/skills/flutter-add-integration-test)

## Features

- **Test dependency setup:** Adds integration_test and flutter_test as Flutter SDK dev dependencies and enables the Flutter Driver extension in the entry point.
- **MCP interactive exploration:** Uses MCP tools to launch the app, read the widget tree and run taps, text entry and scrolls before writing tests.
- **WidgetTester test authoring:** Guides creation of integration test files with binding setup, pumping, finders and visibility assertions.
- **Scroll and wait handling:** Covers scrollUntilVisible, pumpAndSettle and recovery steps for lazily loaded or animated widgets.
- **Multi-platform test execution:** Provides flutter drive commands for Chrome, headless web, Android and Firebase Test Lab.
- **Performance profiling driver:** Includes a driver script for capturing timeline metrics around actions wrapped in traceAction.

## Good for

- Set up integration testing in a Flutter app
- Record a login flow through MCP and save it as a test
- Write a test that taps a button and checks the counter
- Run integration tests on Chrome or an Android emulator
- Profile scrolling performance in a Flutter screen

## Install

### Claude Code

This skill ships in the `dart-flutter` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add flutter/agent-plugins
/plugin install dart-flutter@dart-flutter
```

Or copy only this skill to `~/.claude/skills/flutter-add-integration-test`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flutter/agent-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/flutter-add-integration-test &&
cp -R "$tmp/skills/flutter-add-integration-test" ~/.claude/skills/flutter-add-integration-test &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/flutter-add-integration-test` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/flutter-add-integration-test` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flutter/agent-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/flutter-add-integration-test &&
cp -R "$tmp/skills/flutter-add-integration-test" ~/.agents/skills/flutter-add-integration-test &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/flutter-add-integration-test` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/flutter-add-integration-test` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flutter/agent-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/flutter-add-integration-test &&
cp -R "$tmp/skills/flutter-add-integration-test" ~/.cursor/skills/flutter-add-integration-test &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/flutter-add-integration-test` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/flutter/agent-plugins.git --path skills/flutter-add-integration-test
```

Or copy the folder to `~/.gemini/skills/flutter-add-integration-test` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/flutter-add-integration-test`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flutter/agent-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/flutter-add-integration-test &&
cp -R "$tmp/skills/flutter-add-integration-test" ~/.copilot/skills/flutter-add-integration-test &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/flutter-add-integration-test` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/flutter/agent-plugins.git
```

Then copy `agent-plugins/skills/flutter-add-integration-test` into your agent's skills folder as `flutter-add-integration-test`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Flutter add integration test runs?

It expects a Flutter project with a pubspec.yaml and, for the interactive steps, the Dart/Flutter MCP server. Chrome runs also need chromedriver on port 4444.

### Does Flutter add integration test change my app code?

It adds the Flutter Driver extension call to the entry point and recommends adding ValueKey parameters to critical widgets.

### Can Flutter add integration test test legacy flutter_driver suites?

Yes. The skill includes guidance for maintaining or migrating legacy flutter_driver tests using driver.waitFor, tap and scroll.

### Where do the test files go?

Test files go in an integration_test directory at the project root, with a host driver script in test_driver/integration_test.dart.

### How do I install Flutter add integration test in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/flutter-add-integration-test to use it in all your projects, or to .claude/skills/flutter-add-integration-test in one project. Or install the dart-flutter plugin, which includes it: /plugin marketplace add flutter/agent-plugins, then /plugin install dart-flutter@dart-flutter.

### Does Flutter add integration test run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Flutter add integration test?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Flutter add integration test?

The closest alternatives to Flutter add integration test are Flutter add widget test, Flutter testing skill, Dart add unit test, Dart generate test mocks and Webapp testing.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Flutter add widget test](https://ai-powered.com/skills/flutter-add-widget-test): Flutter add widget test is an open-source agent skill for developer tools.
- [Flutter testing skill](https://ai-powered.com/skills/flutter-testing-skill): Flutter testing skill is an open-source agent skill for developer tools.
- [Dart add unit test](https://ai-powered.com/skills/dart-add-unit-test): Dart add unit test is an open-source agent skill for developer tools.
- [Dart generate test mocks](https://ai-powered.com/skills/dart-generate-test-mocks): Dart generate test mocks is an open-source agent skill for developer tools.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing is an open-source agent skill for browser automation.
- [Xcuitest skill](https://ai-powered.com/skills/xcuitest-skill): Xcuitest skill is an open-source agent skill for developer tools.
- [Cpp testing](https://ai-powered.com/skills/cpp-testing): Cpp testing is an open-source agent skill for developer tools.
- [UI widget developer](https://ai-powered.com/skills/ui-widget-developer): UI widget developer is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/flutter-add-integration-test
