4 — Dependency Injection for Testing
Purpose
[stub: dependency-injection-for-testing]
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
1 — Unit Testing
Covers writing isolated, fast, deterministic tests that verify a single unit of behavior without touching external dependencies.
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.
5 — Contract Testing
Covers verifying that a producer and consumer agree on an API or message contract without standing up the full integration.