Note: this IT radio drama starts with episode 14, Why DEvs don’t TDD. Start listening there.
Connect
Visit Agile Thoughts and register to receive free development, analysis, or leadership and management materials and learn to excel at developing software. I’ll also send information on my low cost email courses you can take via the internet.
020 TDD Undoer
Note: this IT radio show starts with episode 14, Why Devs don’t TDD. It’s suggested you start there first
Vanilla Pop: And see? You just write a bit of test before writing product code and everything will be peachy.
Joe: I don’t know. It’s kinda mind bending to work backwards like this.
Vanilla: but you’re good enough to do it right?
Joe: of course I am! I’ve got it from here!
Vanilla: (sounding uncertain) Well, I thought we’d continue Pair programming.
Joe: would you believe I find you incredibly intimidating? And that I need to work alone to satisfy my self esteem?
Vanilla: well OK. When you put it that way.
(Time passing music with typing sound. Then end of day, a light switch clicks and the door closes.)
Next day
Vanilla: Let’s take a look at those tests.
Joe: here you go! You’re going to love it. I made some adjustments.
Vanilla: Huh? When I click the run tests button, they stop after a bit and
Joe: (proudly) a dialog pops up!
Vanilla: uhhh
Joe: Yes! It’s the ol’ Dialogue to ask the user what crazy value to pass into the tests trick. I was able to replaced four of your tests with just this one.
Vanilla: ah… But now I have to interact and before—
Joe: Brilliant isn’t it! And if you need to debug, it’s all there ready to go!
Vanilla: but Joe, I don’t want to interact with the micro tests. Someday we’ll have thousands and it’ll take forever if We need to interact. With one click, Joe, we want all the micro tests to run.
Joe: (heart broken) Oh! I’ve got it. Let me handle this.
(Time passing)
Vanilla: why is the Test runner reporting fewer tests today than yesterday?
Joe: would you believe that the test started failing for some reason, so I disabled it?
Vanilla: hold on! You’re saying that day by day I’m adding more tests and the count goes up and then your firs