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

test-driven-development

test-driven-development

【开发与工程】Test-first development practice where test specifications are written before production code, integrated into plan tasks as mandatory first sub-steps.

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

技能说明

GitHub

name: test-driven-development description: Test-first development practice where test specifications are written before production code, integrated into plan tasks as mandatory first sub-steps. allowed-tools: Read, Write, Edit, Bash, Grep, Glob, Agent, AskUserQuestion graph: domains: [domain:software-engineering] skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop] workflows: [workflow:feature-development] topics: [topic:developer-experience] roles: [role:tech-lead, role:backend-engineer]

  • During implementation (write tests before code)
  • When verifying step completion

Process

  1. Specify tests first - Define inputs, expected outputs, edge cases
  2. Write test code - Create automated tests matching specification
  3. Implement production code - Write code that passes the tests
  4. Verify - Run tests and confirm all pass

Test Categories

  • Unit tests: Isolated function/method testing
  • Integration tests: Cross-component interaction testing
  • Manual verification: Human-performed checks when automation is impractical

Key Rules

  • Never combine test writing and implementation into a single step
  • Every task with code changes must have associated tests
  • Tests must be runnable and produce clear pass/fail results
  • Edge cases must be explicitly considered

Tool Use

Integrated into methodologies/rpikit/rpikit-plan and methodologies/rpikit/rpikit-implement

我的收藏