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.
019 A QA Professional Questions Micro Tests and TDD
Jose: I heard from the other team members plenty about your TDD. Now I’m all about quality but come on! These tests are just testing the code. And I’m already testing the features. So what good is that?
Vanilla: Well, what you do is a lot of manual work. Instead these are automated, and —
Jose: And they are written by developers? How does it make sense for you to write your own tests for code you wrote? Won’t your tests just pass because you want them to?
Vanilla: It’s like this, Unit tests–
Jose: Unit tests? More like Fantasy Unicorn tests. Do you really think you guys will actually make any? And that they will be any good?
Vanilla: Now come on, Unit tests are fast and test the developer’s intent.
Jose: I don’t need any stinking unit tests to tell me developers intent. Every developer’s intent is to do as little testing as possible so they can write features and fix them later. And everyone comes to me complaining that I didn’t catch them all when, after all, my testing schedule is cut in half!
Vanilla: Now see here Jose, in the last 4 days I’ve written twenty unit tests, and you know what, they test every line of code I wrote.
Jose: Every line of code YOU wrote. I bet they are all happy path. Come on! Be honest!
Vanilla: Now see here Jose–
Jose: The cat’s already out of the bag Pop. I heard the PO talking about how these unit tests don’t even test features. Now how does that make any sense?
Vanilla: They don’t *directly* test the features. Directly, I say! However, they test the code that makes the features work.
Jose: Listen to yourself talk man. You’re raving.
Vanilla: Come on!
Jose: Micro or not, developers write tests? Those two things just don’t go together. A skunk don’t change its stripes.
Vanilla: Now you just hold on there! Do you think that