Pragmatic Unit Testing is an easy to read introduction to unit testing. This book covers the basic information you need to know in order to effectively write unit tests.
This book covers in less than 200 pages:
- What is unit testing and why developers must unit test every piece of code they write.
- An introduction to unit testing with JUnit.
- How to effectively write unit tests.
- Testing on a project.
- How unit testing affects the design of the code.
The only thing that I didn’t like about this book is the insufficient coverage of the important paradigm of test driver development.