What book would you recommend to learn test driven development? Preferrably language agnostic.
For me, this is the best one:
- Test Driven Development: By Example by Kent Beck
I'm a big fan of almost anything from the Pragmatic Bookshelf, but these two really helped drive the point home for me:
The Pragmatic Programmer: From Journeyman to Master. This ages really well. I'd recommend it to any developer.
Pragmatic Unit Testing in C# with NUnit, 2nd Edition. Don't let the title scare you. The concepts are pretty language agnostic, even with the C# examples.
Fairly recent reasonably written book The Art of Unit Testing. I am surprised it wasn't mentioned here.
The Astels book is a solid introduction, Beck's book is good on the underlying concepts, Lasse Koskela has a newish one (I forget the title). Osherove's book, as he says, is about Unit Testing, rather than TDD. I'm not sure that the Pragmatics' TDD book has aged as well as their original book.
Most everything is Java or C#, but you should be able to figure it out yourself.