|
|
|
Ask HN: Books on Unit Testing and TDD?
|
|
10 points
by Desafinado
82 days ago
|
|
I'm in a situation where I understand the importance of unit testing and how TDD works, but in practice I don't actually get to do it much. The technology I'm working in isn't really testable in this way. That being said I'm interested in locating some reading material on these topics that don't just cover the basics, but do so with a little more depth so I can hopefully glean some of the senior level experience I'd get if I was actually doing it regularly. |
|
The best "let's do something not trivial" TDD book is probably still _Growing Object Oriented Software, Guided by Tests_ by Steve Freeman and Nat Pryce.
Most of the "more than the basics" topics are the same kinds of practices that were considered "good design" whether you were using TDD or not. For example, Parnas 1971, Berard 1993, John Carmack 1998 ("Time is an input...."), and so on.
If you are interested in more than the basics on TDD, the right starting point is _Test Driven Development by Example_ by Kent Beck, which while a bit thin on examples actually covers a nice variety of more advanced topics (although not in great depth). If you are going this route, you should pair that with Beck's 2023 essay "Canon TDD".