/dart-flutter:flutter-add-integration-testfrom Dart and Flutter
Add and run Flutter integration tests with integration_test. Use for device-level app flows, platform behavior, and end-to-end interactions.
Ships in Dart and Flutter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Inspect existing tests and target platforms. Add integration_test as a Flutter SDK dev dependency if missing. Place tests in integration_test/ and name files *_test.dart.
Initialize IntegrationTestWidgetsFlutterBinding.ensureInitialized() in the test's main(). Import the app and use testWidgets, WidgetTester, and finders. Add stable keys only where existing text or semantics do not identify the target reliably.
Do not add enableFlutterDriverExtension() to the application for an integration_test test. Keep flutter_driver setup only when maintaining a legacy Flutter Driver suite.
If the Dart and Flutter MCP server exposes app launch and interaction tools, use them to inspect a running app. Check which tools are available; do not assume a particular tool name. Write the observed behavior as a repeatable test.
Run flutter test integration_test/<file>_test.dart -d <device> on supported mobile or desktop targets. Use flutter drive and a host driver only for a target or workflow that requires one, such as the documented web setup or performance collection. Follow the project's CI and device configuration. Verify the test fails for the intended regression and passes after the fix when practical.
Use pumpAndSettle only when animations settle. For continuous animations, wait for the specific state with bounded pumps or finders.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mordechai30/flutter-dart-skills --plugin dart-flutter26 skills in this plugin
/dart-add-unit-testAdd focused unit tests for Dart code with package:test, or flutter_test in Flutter projects. Use for new logic and regressions that can be checked without a running app./dart-build-cli-appBuild Dart command-line tools with sound argument parsing, streams, exit status, packaging, and subprocess behavior. Use for console apps and installed Dart executables./dart-collect-coverageCollect and inspect LCOV test coverage for Dart or Flutter projects. Use when the user requests a coverage report or needs to find untested behavior./dart-fix-runtime-errorsDiagnose and fix observed Dart or Flutter runtime failures from a stack trace, failing test, or running app. Use for exceptions, failed casts, late initialization errors, and similar failures./dart-generate-test-mocksGenerate Mockito test doubles for Dart or Flutter dependencies when hand-written fakes are impractical. Use for controlled service responses and interaction verification./dart-migrate-to-checks-packageReplace the usage of `expect` and similar functions from `package:matcher`
to `package:checks` equivalents.