Community生產力與協作github.com

madteacher/flutter-testing

協助你為 Flutter 應用程式、套件和外掛編寫、修復、審查、除錯及驗證測試。

flutter-testing 是什麼?

此技能專為使用 Flutter 進行開發的工程師所設計,旨在全面涵蓋各類測試場景,包括單元測試、Widget 測試和整合測試。它能處理常見的測試痛點,例如 MethodChannel 或外掛模擬、使用 Mockito 或 mocktail 建立測試替身、Golden 測試(快照測試)和無障礙檢查。此外,也支援 CI 測試指令的建立與排錯、處理 MissingPluginException 這類特定錯誤、以及解決 pump、pumpAndSettle、Finder 錯誤等常見問題。對於使用 build_runner 進行程式碼生成的專案,它也能幫助生成必要的 Mock。該技能同時涵蓋裝置和網頁整合測試,並能協助定位與修復不穩定的測試(Flaky Test)。透過將這些流程整合並提供詳細的 Markdown 文件,它能大幅提升 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 測試替身、Golden 或無障礙檢查、CI 測試指令、測試失敗、MissingPluginException、pump 或 pumpAndSettle 問題、Finder 錯誤、build_runner 模擬生成、裝置整合測試、網頁整合測試或不穩定的 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.

相關技能