Some how TDD has infused itself into my brain today. I can’t stop thinking about it. All the resources out there would make you believe that TDD is some process that all you have to do is adopt and it will lead you to the promised land. In reality, I believe it’s more like a RELIGION. You have to first find your faith and then perform the rituals before the promised land materializes.
I’ve been practicing TDD for over 2 years now and I still find it challenging. Anybody can write unit test after the fact, but only the best developers know how to make great decisions throughout a project. And it’s this ability to make quality decisions consistently that I struggle with day to day. It’s a design activity after all.
Here are couple of very high level challenges which I think I have with TDD
- How to determine at what scope I should write a test
- Make sure I capture behavior and not implementation details
- Learning not to over mock
- Force myself to write only enough code to make the test pass
erratically and difficult to maintain.
Humm I am thinking of elaborating my bullets points, nahhhhhh not today probably will do that in my next blog.
Manisha