top | item 14667028

(no title)

tieTYT | 8 years ago

That's not how you're supposed to do it. Write one test, get it to pass, repeat.

discuss

order

taeric|8 years ago

Right. In that, you still write all of the tests before the code. If you are objecting only to the rhetoric of "wall" of tests. That just depends on your size of units. Think of it more as hurdles of tests. :)

tieTYT|8 years ago

> write all of the tests before the code

Everyone is interpreting this as, "write 10 tests then try to get them all to pass at once". That is not how you TDD. You write one, then get it to pass, then write another.

Maybe you mean, "write the test before the code", but when you say "write all tests before the code", it's not interpreted the same way.