3 ms·
> No, TDD means that if there is a line of code anywhere that was not written to make some failing test pass, that code is by definition broken. No, it doesn't
by geezerjay 9y ago
> No, TDD means that if there is a line of code anywhere that was not written to make some failing test pass, that code is by definition broken.
No, it doesn't. TDD means tests are written to test the code, and the code being written must pass all tests. It's ok if at any point some parts of the code aren't covered by tests, because TDD is a cyclic process where at each cycle new tests are written to accompany changes in the code.
It seems that the only people complaining about TDD are those who pull the strawman card and portray the process as being unreasonably convoluted and picky, to a level which is almost autistic.