3 ms·
You are correct. Not only this, but it's a blatant violation of TDD. TDD is having a single test go red->green, not a suite.
by sb8244 9y ago
You are correct.
Not only this, but it's a blatant violation of TDD. TDD is having a single test go red->green, not a suite.
- tomnipotent 9y agoExactly this. It's Red, Green, Refactor. 1. Write test; build fails because code under test DOESN'T EXIST 2. Write the least amount of code needed for the test to pass 3. Refactor & repeat process ad infinitum The Wikipedia entry for TDD also states this explicitly [0] This is a differentiating feature of test-driven development versus writing unit tests after the code is written: it makes the developer focus on the requirements before writing the code, a subtle but important difference. [0] https://en.wikipedia.org/wiki/Test-driven_development#Test-driven_development_cycle https://en.wikipedia.org/wiki/Test-driven_development#Test-d...