---
id: tdd
requestedLanguage: zh
descriptionLanguage: zh
---

# TDD 测试驱动开发 · Test-Driven Development

- 类型: 开发实践
- 分组: 实现循环
- 位置: 实现 / 完善方案
- [来源](<https://agilealliance.org/glossary/tdd/>)

[HTML](https://dpm.cnonim.name/zh/practices/tdd/)

短周期循环：失败的测试 → 最小实现 → 重构。

## 关系

- 可与之结合: [ATDD 验收测试驱动开发 · Acceptance Test-Driven Development](/practices/atdd/zh.md) (combination)
- 可与之结合: [BDD 行为驱动开发 · Behavior-Driven Development](/practices/bdd/zh.md) (combination)
- 包含此步骤: [重构 · Refactoring](/practices/refactor/zh.md) (structure)
- 其测试可由此评估: [变异测试 · Mutation Testing](/practices/mutation/zh.md) (verification)
- 可使用: [基于属性的测试 · Property-based Testing](/practices/property/zh.md) (support)
- 可使用: [单元测试 · Unit Testing](/practices/unit/zh.md) (support)
- 是其中的实践: [XP 极限编程 · Extreme Programming](/practices/xp/zh.md) (structure)

[在地图上显示](https://dpm.cnonim.name/#practice=tdd&lang=zh)
