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

test-gen

使用Vitest生成包含边界情况的全面测试

person作者: jakexiaohubgithub

Test Generation

Use this skill to generate tests that meet SISU's coverage standards.

Goals

  • Cover happy path, edge cases, and invalid inputs
  • Use Vitest syntax and patterns
  • Keep tests deterministic and isolated

Steps

  1. Identify target module and public behavior
  2. Enumerate input variations
  3. Generate tests for error handling and cancellation
  4. Validate coverage thresholds (≥ 80%)

Resources

See resources/vitest-patterns.md for patterns and examples.