Testing · Senior · Question 15 of 75
What is the main value of TDD at a senior level beyond “having tests”?
- ✓Correct answer: It drives design: small units with clear interfaces and dependencies that are easy to substitute
- 2It guarantees 100% coverage
- 3It removes the need for code review
Explanation
Hard-to-test code is often a design smell: too many responsibilities or hidden dependencies.