Chapter 14. Unit testing with Groovy

 

The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong, it usually turns out to be impossible to get at or repair.

 
 --Douglas Adams

Developer unit testing has become a de facto standard in the Java community.[1] The confidence and structure that JUnit[2] and other testing frameworks bring to the development process are almost revolutionary, if you think about it. To those of us who were actively developing Java applications in the latter years of the 20th century, automated unit testing was almost unheard of. Sure, we wrote tests, but they were hardly automated or even a part of a standard build!

Fast-forward ...

Get Groovy in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.