《Unit Testing: Principles, Practices, and Patterns》 学习

2026-06-05 ⏳0.0分钟(0.0千字)

仅个人学习使用,支持正版。 《Unit Testing: Principles, Practices, and Patterns》

Part 1: The bigger picture | 全局视角

Chapter 1: The goal of unit testing | 单元测试的目标

Chapter 2: What is a unit test? | 什么是单元测试?

Chapter 3: The anatomy of a unit test | 单元测试的结构

Part 2: Making your tests work for you | 让测试为你服务

Chapter 4: The four pillars of a good unit test | 好单元测试的四大支柱

Chapter 5: Mocks and test fragility | Mock 与测试脆弱性

Chapter 6: Styles of unit testing | 单元测试的风格

Chapter 7: Refactoring toward valuable unit tests | 重构为有价值的单元测试

Part 3: Integration testing | 集成测试

Chapter 8: Why integration testing? | 为什么需要集成测试?

Chapter 9: Mocking best practices | Mock 最佳实践

Chapter 10: Testing the database | 测试数据库

Part 4: Unit testing anti-patterns | 单元测试反模式

Chapter 11: Unit testing anti-patterns | 单元测试反模式