Test generation
Skill ligyDt/ai-ide-init-template/codebuddy/.codebuddy/skills/test-generation
面向 Codex、Cursor、CodeBuddy、TRAE 的中文 AI IDE 项目初始化模板,内置多角色协作、Skills、MCP、Hooks 与安全验证。
npx -y skills add ligyDt/ai-ide-init-template --skill test-generationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
为新功能、缺陷修复、重构或发布前验证生成测试策略、单元测试、集成测试、边界用例和覆盖率追踪方案。
SKILL.md
1.0 KB, as published. Nobody here has run it
TDD 与测试生成
流程
- 明确被测行为、输入输出、依赖边界、错误路径和验收标准。
- 优先阅读现有测试风格和项目测试命令,不为模板强行引入新框架。
- 先写可失败的行为用例,再补充边界、回归和异常路径。
- 对支付、权限、隐私、外部服务和生产数据相关路径优先使用替身、沙箱或只读验证。
- 输出测试矩阵、建议测试文件、运行命令和未覆盖风险。
输出
- 测试目标与范围
- 单元、集成、端到端或人工验收用例
- 覆盖率或关键路径追踪方式
- 运行命令与失败处理建议
停止条件
缺少目标、范围、运行环境或高风险授权时,先澄清或输出待确认事项,不擅自接入外部写入、支付、部署或生产资源。