What is the main advantage of Test-Driven Development (TDD)?
-
A
It eliminates the need for integration tests
-
B
It ensures tests are written before code, clarifying requirements and catching regressions early
-
C
It allows developers to skip code reviews
-
D
It automatically generates documentation from test cases