界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

testing

testing

【开发与工程】Testing strategies and methodologies including TDD, E2E testing, and multi-framework support

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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 tests
  • tdd-guide agent — Test-driven development guidance
  • build-error-resolver agent — Fixing test failures

Key Rules

  1. Tests first — Write failing test before implementation
  2. AAA pattern — Arrange, Act, Assert in every test
  3. No shared mutable state — Each test is independent
  4. Descriptive names — test_<feature>_<scenario>_<expected>
我的收藏