O'Reilly logo

Groovy in Action, Second Edition by Dierk König and Paul King with Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17. Unit testing with Groovy

This chapter covers

  • Unit testing Groovy and Java code
  • Incorporating code coverage tools
  • Integrating IDEs
  • Testing with Spock
  • Automating the build process

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. To those of us who were actively developing Java applications in the latter years of the 20th century, automated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required