summaryrefslogtreecommitdiff
path: root/Detroit-style TDD.md
blob: 57260680ad53281d76d32680926466259e4909f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
tags:
  - software-design
  - software-engineering
  - tdd
---
Classic TDD:

1. Write a failing test for public API (red)
2. Change implementation to make it pass (green)
3. Refactor
4. Go to step 1

Benefits:
- Small increments
- When adding features we can spot regressions quickly due to having numerous tests
- Aggressive refactoring possible due to public API being tested
- Complete regression test suite