Pragmatic programmers use feedback to drive their development and personal processes. The most valuable feedback you can get while coding comes from unit testing.
Let your Java code tell you what’s working and what isn’t. You’ll learn how to test using JUnit, but more importantly, you’ll learn what to test.
Pragmatic Unit Testing in Java 8 with JUnit is available here.
For various technical reasons, the eBook version is a PDF: epub and mobi versions of this title will NOT be available.
About This Title
Without good tests in place, coding can become a frustrating game of “whack-a-mole.” That’s the carnival game where the player strikes at a mechanical mole; it retreats and another mole pops up on the opposite side of the field. The moles pop up and down so fast that you end up flailing your mallet helplessly as the moles continue to pop up where you least expect them.
You don’t test a bridge by driving a single car over it right down the middle lane on a clear, calm day. Yet many programmers approach testing that same way - one pass right down the middle and they call it “tested.” Pragmatic programmers can do better than that!
Real unit testing will make your life easier. It will make your designs better and drastically reduce the amount of time you spend debugging.
With this book, you’ll:
Write better code, faster
Discover the best hiding places where bugs breed
Learn how to think of all the things that could go wrong
Test pieces of code without using the whole project
Andy Hunt and Dave Thomas, partners in The Pragmatic Programmers LLC, and founders of the Pragmatic Bookshelf, offer pragmatic resources for developers and managers. Their first book, The Pragmatic Programmer: From Journeyman to Master, is a popular overview of techniques and practices that make programming effective and enjoyable.