Flutter 集成测试
原名:flutter-add-integration-test
把真实用户操作整理成可重复的 Flutter integration_test 流程。
中文 Skills 技能说明
适合登录、表单、导航等跨页面关键路径。部分探索步骤可借助 Flutter MCP 或驱动工具,未配置时应使用项目已有测试与命令行方式;测试数据和账号必须属于授权环境,不能把模拟器操作成功直接当成线上业务验收。
上游能力依据
上游原始适用说明: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 integrationtest package.
上游 SKILL.md 主要章节(保留原文标题):
- Contents
- Project Setup and Dependencies
- Interactive Exploration via MCP
- Test Authoring Guidelines
- Execution and Profiling
- Workflow: End-to-End Integration Testing
- Examples
- Standard Integration Test (integrationtest/apptest.dart)
- Host Driver Script (testdriver/integrationtest.dart)
- Performance Profiling Driver Script (testdriver/perfdriver.dart)
使用边界
先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。
作者、翻译与许可证
- 原作者
- The Flutter Authors 与 flutter/agent-plugins contributors
- 中文翻译
- CEOFans翻译
- 许可证
- BSD-3-Clause
- 上游来源
- https://github.com/flutter/agent-plugins/tree/864cf8797b190ddb81e4875db6dd6bab89641f62/skills/flutter-add-integration-test
适用范围
平台:linux、macos、windows;标签:测试与质量、Flutter 集成测试
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。