News for hackers. Stuff that matters.
Re:TDD did not live up to expectations by taeric on Thursday June 29, 2017 @12:39PM (#14664646)
Rereading my post, I see where it sounds more strawman of the "entire wall of tests." I did not mean it to be the final test suite is written first.

Instead, I intended that to be the wall that you will be passing in a given cycle. So, for a small development cycle, you add in some new tests that will be this cycle's "wall" of failing tests that you flip to passing.

And don't take this to be an indication that I think integration tests are somehow superior. They all have advantages and there is a massive cost benefit tradeoff that has to be considered at all times.

It is easy to talk in strawmen. Such that I can confidently say if you have a set of tests that always fails together, that should just be a single test. However, I do not feel that statements like that are informative, precisely because it is a judgement call masquerading as a rule.

Re:TDD did not live up to expectations by tieTYT on Thursday June 29, 2017 @05:33PM (#14667028)
That's not how you're supposed to do it. Write one test, get it to pass, repeat.
Re:TDD did not live up to expectations by taeric on Thursday June 29, 2017 @10:36PM (#14668314)
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. :)
Re:TDD did not live up to expectations by tieTYT on Friday June 30, 2017 @01:09PM (#14672096)
> 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.

Re:TDD did not live up to expectations by jaggederest on Thursday June 29, 2017 @02:57PM (#14665957)
> So, for a small development cycle, you add in some new tests that will be this cycle's "wall" of failing tests that you flip to passing.

That's not right either. There is no "wall". Writing tests helps you write the code which helps you write better tests. It's mutual recursion, not a one-way waterfall.