Site icon Accidentally in Code

A Brief Rant about TDD

success ln / failure dr
Credit: Flickr / StockMonkeys.com

I’ve been giving this talk about unit testing UI code lately and of course when you talk about testing, TDD (test driven development) keeps coming up.

The question ranges from “have you embraced TDD as the One True Way Of Testing, and if not why not because you’re doing it wrong” and “I have heard that TDD is the One True Way Of Testing, but I don’t unit test at all and I’m overwhelmed”.

Note that neither of these are actually questions, but I digress.

When it comes to my own workflow, I don’t do strict TDD (gasp!)

Here’s my answer to the second none-question: I don’t believe in telling people to TDD. I believe in testing your code. That’s it. I’m happy to share my workflow, and techniques I use (buy my workshop!) but people should do what works for them.

I do think though that TDD is something that you work up to (some point of), not what you start with. Because:

TL;DR: I don’t really TDD. I don’t care if you TDD. I do think everyone should test their code, though.

Exit mobile version