5 ms·
That’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 line
by jdlshore 6y ago
That’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.