2 ms·
Then it’s not (edit: pure) TDD. The TDD purists I’m familiar with think if you write any code before you write the tests, you’re doing it wrong.
by t-writescode 6y ago
Then it’s not (edit: pure) TDD.
The TDD purists I’m familiar with think if you write any code before you write the tests, you’re doing it wrong.
- jdlshore 6y agoThat’s a common misunderstanding of TDD, but it’s incorrect. TDD is an incremental cycle of write test, write code, refactor, repeat. Typically less than 5 lines at a time.
- t-writescode 6y agoGiven the order of the words you said, writing tests comes before writing code, as I said.
- jdlshore 6y agoWriting one test comes before writing a few lines of code. It’s iterative. Tests (plural) don’t come before code. They happen at the same time.