5 ms·
Are you trying to say that “Test-Driven Development” is “writ[ing] tests for their code”? Test-Driven Development means that the tests are written before the f
by chrisoverzero 4y ago
Are you trying to say that “Test-Driven Development” is “writ[ing] tests for their code”?
Test-Driven Development means that the tests are written before the features.
- jdlshore 4y agoThat's a common misunderstanding, but it's not true. TDD involves writing the tests at the same time as the code in tiny little steps. Write a few lines of test code that fail --> write a few lines of production code to make it pass --> refactor if needed to clean things up --> repeat.
- chrisoverzero 4y ago> Write a few lines of test code that fail OK, write the test… > write a few lines of production code to make it pass …before the feature. I recognize the color you’re trying to add (it’s more like TFTFTF than TTTFFF), but it remains Test-Driven Development.
- jdlshore 4y agoSure, if you insist. I've seen enough people misunderstand TDD to be TTTFFF that I think it's important to clarify.