Community生产力与协作github.com

madteacher/flutter-testing

为应用、包和插件编写、修复、审查、调试并验证 Flutter 测试。用于添加单元测试、Widget 测试、集成测试、MethodChannel 或插件模拟、Mockito 或 mocktail 测试替身、黄金或无障碍检查、CI 测试命令、测试失败、MissingPluginException、pump 或 pumpAndSettle 问题、查找器错误、build_runner 模拟生成、设备集成测试、Web 集成测试或 Flaky Flutter 测试。

flutter-testing 是什么?

该技能专为 Flutter 开发者设计,旨在全面管理 Flutter 应用的测试工作流。它支持编写、修复、审查、调试和验证各类测试,包括单元测试、Widget 测试和集成测试,并涵盖主流测试框架如 Mockito 和 mocktail 的模拟生成。此外,该技能还能处理常见的测试痛点,例如 MethodChannel 模拟、黄金图像测试、无障碍检查、以及 pump 和 pumpAndSettle 相关的定时问题。它兼容命令行 CI/CD 集成,并能应对 MissingPluginException 等插件相关异常。无论是设备端还是 Web 端的集成测试,该技能都提供了清晰的处理路径,特别适合需要维护高质量、低 Flaky 测试的 Flutter 项目。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/madteacher/mad-agents-skills/tree/main/skills/flutter-testing

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

flutter-testing 是做什么的?

为应用、包和插件编写、修复、审查、调试并验证 Flutter 测试。用于添加单元测试、Widget 测试、集成测试、MethodChannel 或插件模拟、Mockito 或 mocktail 测试替身、黄金或无障碍检查、CI 测试命令、测试失败、MissingPluginException、pump 或 pumpAndSettle 问题、查找器错误、build_runner 模拟生成、设备集成测试、Web 集成测试或 Flaky Flutter 测试。

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

madteacher/flutter-adaptive-ui

Build, fix, review, and validate adaptive or responsive Flutter UIs for mobile, tablet, desktop, web, large screens, foldables, and mixed input devices. Use when creating breakpoint-driven layouts, responsive navigation, adaptive dialogs/lists/grids, keyboard/mouse/touch behavior, window-size decisions with MediaQuery or LayoutBuilder, or Capability and Policy patterns for platform-specific behavior.

madteacher/flutter-animations

Add, fix, refactor, debug, test, or explain Flutter animations and motion effects. Use when working with implicit animations such as AnimatedContainer, AnimatedOpacity, AnimatedSwitcher, and TweenAnimationBuilder; explicit animations using AnimationController, Tween, CurvedAnimation, AnimatedWidget, AnimatedBuilder, and built-in transitions; Hero/shared-element route transitions; staggered or sequenced animations; physics-based motion, gestures, springs, flings, scroll physics, curves, performance, accessibility, reduced motion, and animation lifecycle bugs.

madteacher/flutter-architecture

Design, refactor, review, or implement Flutter app architecture using MVVM, layered UI/Data/optional Domain boundaries, feature-first or layer-first project structure, repositories, services, dependency injection, Result and Command patterns, offline-first or optimistic UI flows. Use when asked to add a Flutter feature, audit layer dependencies, fix cross-feature imports, migrate to feature-first, choose architecture for a Flutter project, or create scalable maintainable Flutter code organization.

相关技能