Preface
Andy Hunt and Dave Thomas wrote and published the first edition of this book in 2003, about five years after JUnit was introduced. Yet, if you told a 2003 Java developer to write tests to verify their own code, they’d likely have said, “Not a chance. I’m a programmer, not a tester.”
Many developers since then have found value in unit testing. Rather than spend copious time manually testing their solutions and re-manually testing them with each change, these programmers write small tests (in Java) that verify small behaviors in the system. They run these tests through a tool (usually JUnit) and immediately discover if their logic is faulty.
A decade later, unit testing had become an expected developer skill and a common interview topic. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access