Pragmatic Unit Testing in Java with JUnit
![]() | By Andy Hunt, Dave Thomas The Pragmatic Programmers, 2003, Paperback Customer Rating: 12 reviews Recommend |
|---|
Learn how to improve your Java coding skills using unit testing. Despite it's name, unit testing is really a coding technique, not a testing technique. Unit testing is done by programmers, for programmers. It's primarily for our benefit: we get improved confidence in our code, better ability to make deadlines, less time spent in the debugger, and less time beating on the code to make it work correctly. This book shows how to write tests, but more importantly, it goes where other books fear to tread and gives you concrete advice and examples of what to test — the common things that go wrong in all of our programs. Discover the tricky hiding places where bugs breed, and how to catch them using the freely available JUnit framework. It's easy to learn how to think of all the things in your code that are likely to break. We'll show you how with helpful mnemonics, summarized in a handy tip sheet (also available from our www.pragmaticprogrammer.com website) to help you remember all this stuff. With this book you will:
- Write better code, and take less time to write it
- Discover the tricky places where bugs breed
- Learn how to think of all the things that could go wrong
- Test individual pieces of code without having to include the whole project
- Test effectively with the whole team
Title: Pragmatic Unit Testing in Java with JUnit
Sales Rank: 131994 in Books
Author: Andy Hunt, Dave Thomas
Publisher: The Pragmatic Programmers, 1st edition, 2003-09, Paperback, 176 pages, ISBN: 0974514012
Package Dimensions: 8.9 x 7.4 x 0.6 inches, 0.75 pounds
- Sorely in Need of Update
- Buyer beware. This book does not reflect the many changes to JUnit implemented in version 4. I found it to be a very good book when it came out four years ago however. More reviews
- good
- pragmatic Unit testing in java save a lot of time to debug java code. More reviews
- JUnit Testing
- JUnit Testing can really save you a lot of time debugging. This book provides a various way to work with JUnit. More reviews
- Great JUnit Starter Kit
- This is another fine book from the "Pragmatic Programmer" series. If you are doing Java development, but haven't gotten into unit testing yet, this is a great place to start. The book is a quick read - I made it through in two days. The book gives background on why unit testing is important and then tells you how to go about doing it with JUnit. More reviews
- Good introduction to unit testing
- This book is very good for a beginner to unit testing. I like the simple explanation of the different types of unit testing that must be done. This really helps a beginner to make sure that the tests are comprehensive.
Also it clarifies the intention behind use of mock objects. I would use the concepts in this book as a checklist to make sure the More reviews
- Ship it! A Practical Guide to Successful Software Projects
- Pragmatic Project Automation: How to Build, Deploy, and Monitor Java Apps

