---
id: unit
requestedLanguage: zh
descriptionLanguage: zh
---

# 单元测试 · Unit Testing

- 类型: 测试层级
- 分组: 验证
- 位置: 验证 / 层级与范围
- [来源](<https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf>)

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

在依赖受控的条件下，检查小型组件的行为。

## 关系

- 可使用: [边界值分析 · Boundary Value Analysis](/practices/boundary/zh.md) (support)
- 经常用于其中: [TDD 测试驱动开发 · Test-Driven Development](/practices/tdd/zh.md) (support)
- 通过提取而简化: [函数式核心 · Functional Core, Imperative Shell](/practices/core/zh.md) (support)
- 检查的范围与之不同: [集成测试 · Integration Testing](/practices/integrationtest/zh.md) (comparison)
- 检查其中的组件: [V 模型 · V-model](/practices/vmodel/zh.md) (structure)

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