1 — Unit Testing
Purpose
[stub: unit-testing]
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
2 — Testable Design
Explains how explicit dependency boundaries and small units of behavior make code inherently easier to exercise in isolation.
3 — Mocking
Covers using test doubles to isolate the unit under test from collaborators that are slow, external, or nondeterministic.
4 — Dependency Injection for Testing
Explains how injecting dependencies rather than constructing them internally lets tests substitute fakes without touching production code.
5 — Contract Testing
Covers verifying that a producer and consumer agree on an API or message contract without standing up the full integration.