tags:

views:

116

answers:

6

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: 

I'm using Nunit

NUnit

Dani
A: 

Test Driven Development : By Example, by Kent Beck
alt text

Mathias
+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
As a third book, you could then go to "Refactoring to Patterns", by Joshua Kerievsky...
Mathias
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
+2  A: 

The Art of Unit Testing

schinazi
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
+2  A: 

This book is good, and is very new (came out 2009).

Growing Object-Oriented Software, Guided By Tests, by Freeman and Pryce
alt text


This book came out in 2003, but it contains a complete example from start to finish. Test-driven development: A Practical Guide, by Astels
alt text

ShaChris23
+1 for Astels' book; it's the best I've seen on the topic.
Carl Manaster