AgentSkillsCN

test-generation

生成全面的测试套件,包括单元测试、集成测试、边缘用例及错误处理。当为现有代码生成测试、提升覆盖率或创建系统化测试套件时使用。触发条件:‘生成测试’、‘添加测试’、‘测试覆盖率’、‘为……编写测试’、‘创建测试套件’。

SKILL.md
--- frontmatter
name: test-generation
description: "Comprehensive test suite generation with unit tests, integration tests, edge cases, and error handling. Use when generating tests for existing code, improving coverage, or creating systematic test suites. Triggers: 'generate tests', 'add tests', 'test coverage', 'write tests for', 'create test suite'."
# v2.0.43: Skills to auto-load for test generation subagents
skills:
  - code-style
  - testing-strategy
# v2.0.74: Restrict tools for test generation work
allowed-tools:
  - Read
  - Write
  - MultiEdit
  - Bash
  - Grep
  - Glob
  - TodoWrite

Test Generation Skill

Comprehensive test suite generation with unit tests, integration tests, edge cases, and error handling.

Description

Automated test generation analyzing code structure and generating thorough test coverage for existing implementations.

What's Included

  • Examples: Unit test generation, integration tests, edge cases
  • Reference: Test patterns, coverage strategies
  • Templates: Test suite templates for different frameworks

Use When

  • Need test coverage for existing code
  • Improving low coverage areas
  • Systematic test creation

Related Agents

  • test-generator

Skill Version: 1.0