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.
021 Code Coverage Scandal
Vanilla Pop: So how about it team? Can we do TDD for a Sprint and see how it goes?
Horst: I’ve backed off my no micro test policy. Ja? So I’m open to letting the team decide how to deliver to me features and quality.
Code Dog: But I don’t believe in TDD. You can’t write tests before you write the code. You what? Really? Well no one really does it. Come one. After a few weeks, you’ll go back to what I call, Bug Driven Development. It’s what all of us debugger ninjas do.
Architect: I’ve changed. My consoler has advised me to try and have a more flexible mindset. I’m trying to be a better man. To be less bossy. To let teams decide rather than me order them about. It’s kumbiyah, everyone! Let’s sing. No? Ok then. So Mr Pop is right. He’s shown me the way. Now here is the thing. We all need to start doing this. The management wants us to lead the others and achieve 100% code coverage with micro tests. The VP has signed off on it. I’ve got a Continuous Integration server running them. Now we have to do it! It’s the law.
Good luck.
Jose: (whisper) Well, that flexible mindset lasted about 5 minutes.
Junior Joe: (whisper) Would you believe that’s a new record?
Code Dog: Come on! This is not happening. People aren’t really doing that. That’s what QA is for.
Jose: I don’t know. Vanilla Pop has done some nice work. Have you looked at those tests?
Code Dog: Well… no. That’s Pop’s thing.
Junior Joe: I’ve seen the light. I’m on board.
Vanilla Pop: thank you.
Architect: Vanilla Pop and Junior have got the coverage up to 40%. This is a small new single page app. With Code Dog also doing TDD, by my calculations we could get to 100% by this time next week. Let’s get it there boys!
(Time passes.) Tuesday, 50% Wednesday, 60%, Thursday 65%, Friday 85%, (go! Go! Go!) Monday 90%.
Architect: not bad! I’m quite impressed with the turn around from Code Dog. He’s really caught the TDD gestalt. In fact, the code areas he works in have 100% code coverage. So I’ve nominated him for an award.
Code Dog: (shocked) wow. Thanks!
Devs: (pat Code Dog’s back)
Junior: good work,
Vanilla: I’m proud to know you,
Jose: not bad for a developer
Vanilla: He really turned it around.
Horst: Was ist dass? Why is it