The FIRSTHAND Guidelines of TDD
TDD is more than a test-first unit testing or a Red-Green-Refactor approach. TDD includes best practices and guidelines that steer the way you work with unit testing.
I wanted to make a memorable list, from my experience, of the most useful guidelines on unit testing and TDD. So, here are nine proven best practices that I’ve abbreviated as FIRSTHAND. FIRSTHAND stands for:
- First
- Intention
- Readability
- Single-Behavior
- Thoroughness
- High-Performance
- Automation
- No Interdependency
- Deterministic
In this chapter, we will go through each of these nine guidelines and support them with relevant practical examples. By the end of the chapter, you should have a fair understanding of the ecosystem of TDD and its guidelines.