flutter-test-gen

Community

自动生成 Dart mocktail 单元测试

Authordus2183-commits
Version1.0.0
Installs0

System Documentation

What problem does it solve?

该技能能够从 Dart 代码自动生成 mocktail 单元测试,显著提升测试覆盖率并减少重复编写测试的工作量。

它适用于读取 Dart 文件路径或直接粘贴代码片段的场景,并会输出放在 test/ 目录下的测试文件。

通过遵循统一的测试模板和 mock 机制,降低入门门槛、提高可维护性。

Core Features & Use Cases

  • 自动为公有方法生成三种测试用例:成功路径、异常路径、边界值。
  • 支持输入形式为文件路径或直接粘贴代码,并输出到 test/ 目录。
  • 使用 mocktail 框架,遵循统一的测试模板,便于团队协作与持续集成。

Quick Start

给出要测试的 Dart 代码片段或文件路径,Claude 将自动生成 mocktail 测试并输出到 test/ 目录。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: flutter-test-gen
Download link: https://github.com/dus2183-commits/flutter-skills/archive/main.zip#flutter-test-gen

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.