1.4. Getting an overview of Spock’s main features

Before starting with the details of Spock code, let’s take a bird’s-eye view of its major features and how they implement the good qualities of a testing framework, as already explained.

1.4.1. Enterprise testing

A test framework geared toward a big enterprise application has certain requirements in order to handle the complexity and possible configurations that come with enterprise software. Such a test framework must easily adapt to the existing ecosystem of build tools, coverage metrics, quality dashboards, and other automation facilities.

Rather than reinventing the wheel, Spock bases its tests on the existing JUnit runner. The runner is responsible for executing JUnit tests and presenting ...

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.