跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

testing

Write comprehensive tests

AgriciDaniel · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add AgriciDaniel/claude-code-essentials-vs-code --skill testing

技能说明


name: testing description: Write comprehensive tests

When writing tests:

  1. Use descriptive names: "should [behavior] when [condition]"
  2. Follow Arrange-Act-Assert (AAA) pattern
  3. Test edge cases: null, empty, boundary values
  4. Mock external dependencies appropriately
  5. Prefer integration tests for critical paths
  6. Aim for 80% coverage minimum
  7. Use test fixtures for complex data setup
  8. Test error scenarios and edge cases
  9. Keep tests independent and isolated
  10. Use parameterized tests for similar scenarios