I'm looking for a good set of resources to get starting on converting to TDD, I always seem to start off with getting unit tests running at first but the more I develop the less I want to write tests for things that I know work. So I am looking to change my mindset and start developing with a TDD mindset
A:
philippe
2009-11-10 16:40:08
+4
A:
You want Test-Driven Development: By Example by Kent Beck and Refactoring by Martin Fowler. IMHO, they should be sold as a 2-volume set. TDD:BE covers things largely from a the testing side, and shows you some refactoring techniques. Refactoring covers things largely from the refactoring side, and brings up good testing practices. Between the two of them, you should have all you need to get started.
bradheintz
2009-11-10 23:18:12
As a third book, you could then go to "Refactoring to Patterns", by Joshua Kerievsky...
Mathias
2009-11-11 18:40:50
I might have said "Clean Code", by Robert Martin. Or maybe "Design Patterns" by Gamma et al - there are a lot of good add-ons to this list. But really, the two I mentioned are the core volumes in my mind.
bradheintz
2009-11-11 18:47:55
Really like the book, but it is a .NET book. Beck's book has examples in Java, but most of the book is language agnostic, whereas this book has lots of language-specific considerations (ex which Mocking framework to pick).
Mathias
2009-11-11 18:38:12
+2
A:
This book is good, and is very new (came out 2009).
Growing Object-Oriented Software, Guided By Tests, by Freeman and Pryce
This book came out in 2003, but it contains a complete example from start to finish.
Test-driven development: A Practical Guide, by Astels
ShaChris23
2010-02-26 18:18:52