Book Review - Unit Test Frameworks by Paul Hamill
An important part of programming that's become popular in recent years is the move towards test-driven programming. The O'Reilly book Unit Test Frameworks from Paul Hamill can help you understand how it works and why it's important.
Chapter List: Unit Test Frameworks: An Overview; Getting Started: Tutorial; The xUnit Family of Unit Test Frameworks; Writing Unit Tests; Unit Testing GUI Applications; JUnit; CppUnit; NUnit; PyUnit; XMLUnit; Resources; Simple C++ Unit Test Framework; JUnit Class Reference; CppUnit Class Reference; Glossary; Index
I've done a little work with JUnit in a prior project, and I must say the concept of test-driven programming was extremely powerful. By building up a collection of unit tests, you can make changes to a program with complete confidence that your modifications did not break existing functionality. This particular book can help you take the necessary steps towards understanding how to write the unit tests, and how to use the xUnit types of frameworks to assist your development regardless of language. I'll find it useful as I start to get back into more complex Java development, plus I want to explore the use of the xUnit packages that test web applications from a user interface perspective.
The book is supposed to be a language-independent overview of xUnit, and it basically is. Still, a majority of the book deals with how xUnit works in Java, so that's most likely where you'll see the most value. The other variants like NUnit and PyUnit get only a few pages, and it's a pretty high-level overview. The book probably could have been larger (it's only 198 pages) in order to cover the other xUnit packages in more detail.
Still, it's a very useful book, and one that you'll derive value from as you implement test-driven programming into your development plans.