News for hackers. Stuff that matters.
Re:TDD did not live up to expectations by sb8244 on Thursday June 29, 2017 @12:38PM (#14664633)
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.

Re:TDD did not live up to expectations by tomnipotent on Thursday June 29, 2017 @01:27PM (#14665090)
Exactly 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-d...