# Flutter testing skill

> Flutter testing skill is an open-source agent skill for developer tools. Generate Flutter widget, integration and golden tests in Dart. 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/LambdaTest/agent-skills/tree/main/flutter-testing-skill
- **Repository:** https://github.com/lambdatest/agent-skills
- **GitHub stars:** 392
- **License:** MIT
- **Skill name:** flutter-testing-skill
- **Collection:** https://github.com/LambdaTest/agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

This skill has the agent write Flutter tests in Dart. It starts by choosing a test type from the request: unit, widget, integration or golden, and defaults to a widget test when the request is ambiguous.

It includes patterns for testWidgets with WidgetTester, finder strategies, user actions, integration tests in the integration_test folder, and golden tests using matchesGoldenFile with commands to generate and compare golden files. Sections on mocking dependencies and anti-patterns round it out, along with a quick reference and a pubspec.yaml snippet.

Tests can run locally or on TestMu AI cloud real devices, where the app is built, uploaded and driven through Appium with the Flutter driver.

## When your agent uses it

> 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", "flutter_test", "integration_test". Triggers on: "Flutter", "widget test", "Dart test", "testWidgets", "WidgetTester", "golden test".

## What it can access

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

- [Instructions only, no scripts](https://github.com/LambdaTest/agent-skills/tree/HEAD/flutter-testing-skill)
- [License: MIT](https://github.com/LambdaTest/agent-skills/tree/HEAD/flutter-testing-skill)

## Features

- **Test type routing:** Picks unit, widget, integration or golden tests from the request.
- **Widget test patterns:** Examples with testWidgets, finders and actions.
- **Integration tests:** Guidance for the integration_test directory.
- **Golden tests:** Visual regression with matchesGoldenFile and update commands.
- **Mocking guidance:** Patterns for mocking dependencies and avoiding anti-patterns.
- **Cloud device runs:** Steps for building, uploading and running on TestMu AI real devices.

## Good for

- Write widget tests for a login screen
- Add golden tests for visual regression
- Create integration tests for a full app flow
- Run Flutter tests on real devices in the cloud

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/flutter-testing-skill` to use it in all your projects:

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

For one project only, put the folder in `.claude/skills/flutter-testing-skill` inside it instead.

### Codex

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

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

For one repository only, put the folder in `.agents/skills/flutter-testing-skill` inside it instead.

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/flutter-testing-skill` 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/LambdaTest/agent-skills.git --path flutter-testing-skill
```

Or copy the folder to `~/.gemini/skills/flutter-testing-skill` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/flutter-testing-skill` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LambdaTest/agent-skills.git
```

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

## FAQ

### Which test type does Flutter testing skill default to?

A widget test, when the request is ambiguous.

### Which language is used?

Dart, with the flutter_test package.

### Can I run on real devices?

Yes, through TestMu AI cloud with Appium.

### How do golden tests work?

They use matchesGoldenFile, with commands to generate and then compare golden files.

### How do I install Flutter testing skill in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/flutter-testing-skill to use it in all your projects, or to .claude/skills/flutter-testing-skill in one project.

### Does Flutter testing skill 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 testing skill?

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 testing skill?

The closest alternatives to Flutter testing skill are Dart migrate to checks package, Dart collect coverage, Developing genkit dart, Firebase test lab migration skill and JavaScript TypeScript jest.

## Where this comes from

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

## Alternatives

- [Dart migrate to checks package](https://ai-powered.com/skills/dart-migrate-to-checks-package): Dart migrate to checks package is an open-source agent skill for developer tools.
- [Dart collect coverage](https://ai-powered.com/skills/dart-collect-coverage): Dart collect coverage is an open-source agent skill for developer tools.
- [Developing genkit dart](https://ai-powered.com/skills/developing-genkit-dart): Developing genkit dart is an open-source agent skill for developer tools.
- [Firebase test lab migration skill](https://ai-powered.com/skills/firebase-test-lab-migration-skill): Firebase test lab migration skill is an open-source agent skill for cloud and infrastructure.
- [JavaScript TypeScript jest](https://ai-powered.com/skills/javascript-typescript-jest): JavaScript TypeScript jest is an open-source agent skill for developer tools.
- [Csharp tunit](https://ai-powered.com/skills/csharp-tunit): Csharp tunit is an open-source agent skill for developer tools.
- [Java junit](https://ai-powered.com/skills/java-junit): Java junit is an open-source agent skill for developer tools.
- [Csharp xunit](https://ai-powered.com/skills/csharp-xunit): Csharp xunit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/flutter-testing-skill
