flutter avatar

Flutter Add Integration Test

Need a Flutter integration testing setup that doesn't make you write every test by hand? This skill walks Claude Code through wiring up `integration_test`, adding `enableFlutterDriverExtension()` to your entry point, and using the Dart/Flutter MCP server to poke at the running app. You can tap through a flow, inspect the widget tree, and then have the skill turn those steps into a permanent test file under `integration_test/`. It also covers the `flutter drive` commands for Chrome, headless web, local Android, and Firebase Test Lab, plus a feedback loop for common failures like `pumpAndSettle` timeouts and off-screen widgets in lazy lists. The honest caveat is that it leans heavily on `ValueKey`s, so expect to add keys to your widgets before the generated tests will be reliable.

skills.sh installs
40.2K
GitHub stars
3.2K
last updated
Oct 26, 2026

Install

$ npx -y skills add flutter/agent-plugins --skill flutter-add-integration-test --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/flutter/agent-plugins
Categories
Testing & QA, AI & Agent Building, Mobile Development, Design & UI/UX
First seen
Oct 26, 2026

More from flutter/agent-plugins

All 10
1wshobson avatartemporal-python-testingwshobson/agentsTest Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setu11.3Kskills.sh installs
2wshobson avatarscreen-reader-testingwshobson/agentsTest web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, 11.1Kskills.sh installs
3flutter avatarflutter-testing-appsflutter/skillsComprehensive testing framework for Flutter apps across unit, widget, and integration test layers.9Kskills.sh installs
4github avatarpolyglot-test-agentgithub/awesome-copilotGenerates comprehensive, workable unit tests for any programming language using a multi-agent pipeline. Use when asked to generate tests, write unit tests, impr8.4Kskills.sh installs
5trailofbits avatarproperty-based-testingtrailofbits/skillsProvides guidance for property-based testing across multiple languages and smart contracts. Use when writing tests, reviewing code with serialization/validation7.7Kskills.sh installs
6wondelai avatarmom-testwondelai/skillsTalk to customers without leading them using Mom Test rules: discuss their life not your idea, ask about specifics in the past, and talk less. Use when the user6Kskills.sh installs