What is TDD?
Write a failing test first, then the code that passes it.
Test-Driven Development — the red/green/refactor loop: write a small failing test, write the minimum code to pass, then clean up. Drives focused, testable design; coverage becomes a by-product rather than a goal.