
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-codeInstalls into .claude/skills of the current project.
Files
Implementing Flutter Integration Tests
Contents
- Project Setup and Dependencies
- Interactive Exploration via MCP
- Test Authoring Guidelines
- Execution and Profiling
- Workflow: End-to-End Integration Testing
- Examples
Project Setup and Dependencies
Configure the project to support integration testing and Flutter Driver extensions.
- Add required development dependencies to
pubspec.yaml:flutter pub add 'dev:integration_test:{"sdk":"flutter"}' flutter pub add 'dev:flutter_test:{"sdk":"flutter"}' - Enable the Flutter Driver extension in your application entry point (typically
lib/main.dartor a dedicatedlib/main_test.dart):- Import
package:flutter_driver/driver_extension.dart. - Call
enableFlutterDriverExtension();beforerunApp().
- Import
- Add
Keyparameters (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- Flutter Setup Declarative Routing39.7K
- Flutter Implement Json Serialization39.4K
- Flutter Add Widget Preview38.7K
- Flutter Setup Localization38.7K
- Flutter Use Http Package37.9K
- Flutter Apply Architecture Best Practices45.5K
- Flutter Build Responsive Layout45.1K
- Flutter Fix Layout Issues42.2K
- Flutter Add Widget Test41.4K