DEV Community

Discussion on: Does Test Driven Development Work?

Collapse
 
ruarfff profile image
Ruairí O'Brien

Really good points. Fred George mentioned something similar in this talk vimeo.com/79866979

I find myself asking the same kinds of questions when I write things like cloud functions on AWS or really small microsevices like you mentioned.

I do think there are definitely cases where TDD doesn't really help. Cloud functions, for example, allow you to set up automated tests that call the function and validate the result while it's deployed. I guess this good enough.

There's an argument against integrated tests that I love here: vimeo.com/80533536

I still find myself unit testing very small services to make sure I cover possible edge cases etc but often find I delete some or all of the test afterwards once they aren't useful any more.

I do end up working on a lot of different things like large web UI, desktop or fairly complex microservices too and getting to build very small services is still rare for me for now.