summaryrefslogtreecommitdiff
path: root/Detroit-style TDD.md
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-04-18 21:01:49 +0200
committerJasper Ras <jaspert.ras@gmail.com>2025-04-18 21:01:49 +0200
commita8a8e1f984f20c8008f3a5f57cd39b416eb73104 (patch)
tree2262794b52d82c5fd9cbc55b503b52fafbd3af8a /Detroit-style TDD.md
parent5fa69499917fab7a026c90c8321dbcc22734106a (diff)
parentab409a3701bf59dd73dc1e0324376bdac8b6d74f (diff)
vault backup: 2025-04-18 21:01:49
Diffstat (limited to 'Detroit-style TDD.md')
-rw-r--r--Detroit-style TDD.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/Detroit-style TDD.md b/Detroit-style TDD.md
new file mode 100644
index 0000000..5726068
--- /dev/null
+++ b/Detroit-style TDD.md
@@ -0,0 +1,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 \ No newline at end of file