Clean Code Notes
Concepts
📘 Handbook
🔍 Search
🌙
☀️
Home
/
Concepts
/
Testing
🧪 Testing
TDD 節奏、單元測試、測試替身、BDD 與可測性設計。
7 pages
TDD 節奏:紅-綠-重構 (Red-Green-Refactor)
★★★★★
什麼是單元測試 (What Is a Unit Test)
★★★★★
好測試的三支柱:可信賴與可維護 (Pillars of Good Unit Tests)
★★★★
★
整潔測試:FIRST 與 AAA (Clean Tests)
★★★★
★
測試替身:Stub vs. Mock (Test Doubles)
★★★
★★
測試的組織與命名 (Test Organization & Naming)
★★★
★★
為可測試性而設計 (Design for Testability)
★★★
★★