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

sc-test

执行测试,生成测试报告,并维护测试覆盖率。在运行测试、检查覆盖率或设置测试基础设施时使用。

person作者: jakexiaohubgithub

Testing and Quality Assurance

Execute tests, generate comprehensive test reports, and maintain test coverage standards.

When to use

  • Running unit, integration, or e2e tests
  • Generating coverage reports
  • Setting up test infrastructure
  • Monitoring test results
  • Fixing failing tests

Instructions

Usage

/sc:test [target] [--type unit|integration|e2e|all] [--coverage] [--watch]

Arguments

  • target - Specific tests, files, or entire test suite
  • --type - Test type (unit, integration, e2e, all)
  • --coverage - Generate coverage reports
  • --watch - Run tests in watch mode
  • --fix - Automatically fix failing tests when possible

Execution

  1. Discover and categorize available tests
  2. Execute tests with appropriate configuration
  3. Monitor test results and collect metrics
  4. Generate comprehensive test reports
  5. Provide recommendations for test improvements

Claude Code Integration

  • Uses Bash for test execution and monitoring
  • Leverages Glob for test discovery
  • Applies TodoWrite for test result tracking
  • Maintains structured test reporting and coverage analysis