Latest

All the resources in the Guide, starting with most recent.

Introduction

Part of tutorial

Introduction
Introduction to the tutorial and links to further reading.
Writing Tests with Spock

Tutorial

Writing Tests with Spock
Learn about the Spock testing framework by creating a project that uses Spock to unit test Java code.
Helper Methods

Part of tutorial

Helper Methods
Sometimes we need to move test code into a separate method. In this section, we look at some tips for this.
Groovy Tips for Java Developers

Part of tutorial

Groovy Tips for Java Developers
Groovy's syntax and functionality might be unusual for Java developers to begin with, but it can be very helpful for testing.
Given, When and Then

Part of tutorial

Given, When and Then
See how Spock tests are usually structured.
Expecting Exceptions

Part of tutorial

Expecting Exceptions
Tests don't check just the happy paths, sometimes we want to say we're expecting a specific Exception.
Data Tables

Part of tutorial

Data Tables
Data tables offer the same functionality as data pipes, but this syntax can sometimes be more readable for more complex sets of data.
Data Pipes

Part of tutorial

Data Pipes
Often we want to test the same set of criteria with different sets of data. Data pipes is one mechanism to do this.
Creating a Project for Spock

Part of tutorial

Creating a Project for Spock
Start by creating a new Java project which will be the basis for the rest of this tutorial.
A Simple Assertion

Part of tutorial

A Simple Assertion
Writing our first Spock test.
Sharing IntelliJ IDEA Settings

Part of tutorial

Sharing IntelliJ IDEA Settings
You can share settings across your own instances of IntelliJ IDEA or with your colleagues.
Configuring your project structure and IntelliJ IDEA preferences/settings

Tutorial

Configuring your project structure and IntelliJ IDEA preferences/settings
You can configure your project structure as well as your preferences/settings for IntelliJ IDEA.