返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Unit Testing Skill

生成遵循企业模式的全面单元测试。在计划或生成单元测试时使用。

person作者: jakexiaohubgithub

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

| Component | Purpose | |-----------|---------| | instructions/testing-patterns.instructions.md | Team testing standards, always load | | prompts/generate-tests.prompt.md | Test generation workflow - follow this when writting new tests | | references/TEST-FIXTURES.md | Common fixture patterns - leverage when you need to create fixtures for your tests |