volume_mute
Small Increments in TDD
publish date: 2026/06/18 05:45:7.273684 UTC
volume_mute
TDD requires identifying small functionality increments to implement. What is the recommended granularity of these increments?
Correct Answer
Each increment should be small enough that you can write a single test for it and implement it quickly
Explanation
TDD works with very small increments of functionality. Each increment should be small enough that a single test can be written for it and implementation can follow quickly. You may sometimes write several tests at once if they all relate to the same small piece of new behavior. The key is that each cycle of the TDD loop completes quickly.
Reference
Software Engineering, Ian Sommerville, 10th edition
