A.4. Spock tests in your IDE

Because Spock tests are in Groovy, the support of Spock in your IDE will be as good as the existing support for Groovy. As explained previously, you don’t need to install Groovy support in your IDE in order to run Spock tests. It’s a nice-to-have feature because of its syntax highlighting and autocomplete facilities. The only thing specific to Spock is the test output result that should be set up to use a fixed-width font so that failure messages show up properly. For more information, see http://www.groovy-lang.org/ides.html. I use Eclipse, but Groovy is supported on most major environments.

A.4.1. Spock in Eclipse

To gain Groovy support in Eclipse, install either the vanilla Groovy plugin or the full-featured Groovy/Grails ...

Get Java Testing with Spock 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.