AgentSkillsCN

Unit Testing Skill

遵循企业级测试模式,生成全面的单元测试。适用于规划或生成单元测试时使用。

SKILL.md
--- frontmatter
name: Unit Testing Skill
description: Generates comprehensive unit tests following enterprise patterns. Use whenever planning or generating unit tests.

Unit Testing Skill

Generate comprehensive unit tests for any codebase, following your team's established patterns and conventions.

Capabilities

  1. Code Analysis: Understands function signatures, dependencies, and edge cases
  2. Pattern Matching: Follows existing test patterns in your codebase
  3. Framework Awareness: Works with pytest, unittest, Jest, Mocha, and others
  4. Mock Generation: Creates appropriate mocks for external dependencies
  5. Fixture Creation: Generates reusable test fixtures

Included Components

ComponentPurpose
instructions/testing-patterns.instructions.mdTeam testing standards, always load
prompts/generate-tests.prompt.mdTest generation workflow - follow this when writting new tests
references/TEST-FIXTURES.mdCommon fixture patterns - leverage when you need to create fixtures for your tests