Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


JUnit, created by Kent Beck and Erich Gamma, is an open source framework for test-driven development in any Java-based code. JUnit automates unit testing and reduces the effort required to frequently test code while developing it.

While there are lots of bits of documentation all over the place, there isn't a go-to-manual that serves as a quick reference for JUnit. This Pocket Guide meets the need, bringing together all the bits of hard to remember information, syntax, and rules for working with JUnit, as well as delivering the insight and sage advice that can only come from a technology's creator.

Any programmer who has written, or is writing, Java Code will find this book valuable. Specifically it will appeal to programmers and developers of any level that use JUnit to do their unit testing in test-driven development under agile methodologies such as Extreme Programming (XP) [another Beck creation].

Subscriber Reviews

Average Rating: 4 out of 5 rating Based on 1 Rating

"Good Overview" - by mwhipple on 21-OCT-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
It's a little dated at this point, but a good introduction to automated testing.  It also doesn't feature much reference information or recipes, so it is more of a quick read than anything you'd keep in your pocket.
Report as Inappropriate


The publisher has provided additional content related to this title.


Visit the catalog page for JUnit Pocket Guide

  • Catalog Page

Visit the errata page for JUnit Pocket Guide

  • Errata