Agent Skills
› davepoon/buildwithclaude
› testing
testing
GitHub提供全面测试指导,涵盖TDD工作流、测试组织(单元/集成/E2E)、多框架支持及Mock策略。强调80%+覆盖率、AAA模式及测试独立性,用于辅助开发、TDD引导和构建错误修复。
触发场景
使用/cc-best:dev进行实现与测试
tdd-guide代理的测试驱动开发指导
build-error-resolver代理修复测试失败
安装
npx skills add davepoon/buildwithclaude --skill testing -g -y
SKILL.md
Frontmatter
{
"name": "testing",
"description": "Testing strategies and methodologies including TDD, E2E testing, and multi-framework support"
}
Testing Skill
Comprehensive testing guidance covering:
- TDD Workflow: Red → Green → Refactor cycle with practical examples
- Test Organization: Unit / Integration / E2E test structure
- Framework Support: pytest, Jest, JUnit5, xUnit, Google Test
- Mock Strategies: Only mock external boundaries, not internal logic
- Coverage Requirements: 80%+ with meaningful assertions
When Loaded
This skill is automatically injected when working with:
/cc-best:dev— Implementation with teststdd-guideagent — Test-driven development guidancebuild-error-resolveragent — Fixing test failures
Key Rules
- Tests first — Write failing test before implementation
- AAA pattern — Arrange, Act, Assert in every test
- No shared mutable state — Each test is independent
- Descriptive names —
test_<feature>_<scenario>_<expected>
版本历史
- 502fc01 当前 2026-07-05 15:09


