7.5. Running Spock tests as part of a build process

So far, I’ve silently assumed that whenever I show you a Spock test, you run it manually and visually check the results in the IDE or the command-line shell. Although this is true for your day-to-day development schedule, a well-designed enterprise application employs a build server that automatically checks out code at various time intervals, compiles it, runs unit tests, and creates reports in a completely automated manner.

If you’re not familiar with build servers, explaining them is outside of the scope of this book. As a suggestion, start by downloading Jenkins (https://jenkins-ci.org/) and then read both the theory[24] and practice[25] behind a sound build process.


See “Continuous ...

Get Java Testing with Spock now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.