Latest

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

Creating your Spring Controller

Part of tutorial

Creating your Spring Controller
Using the IntelliJ IDEA New Project Wizard to create your Spring Controller and select dependencies.
Creating your Spring Boot Project

Part of tutorial

Creating your Spring Boot Project
Using the IntelliJ IDEA New Project Wizard to create your Spring project and select dependencies.
With

Part of tutorial

With
Sometimes we want to check more than one value on an object. We can use `with` to do this.
Verify All

Part of tutorial

Verify All
Test frameworks often stop the test at the first failure. Find out how to run all conditions to see which pass and which fail.
Stubs

Part of tutorial

Stubs
Stub can provide simple interfaces, so we don't have to initialise the whole application to test a section.
Spock IntelliJ IDEA Plugin

Part of tutorial

Spock IntelliJ IDEA Plugin
Add the Spock plugin to IntelliJ IDEA to get some extra help in the IDE.
Specifications as Documentation

Part of tutorial

Specifications as Documentation
Spock tests don't just tell the computer how to test the application, they can help developers understand what the application is supposed to do.
Shortcuts used

Part of tutorial

Shortcuts used
Finally, let's summarise the shortcuts we've learnt and see links to further information.
Setup and Teardown

Part of tutorial

Setup and Teardown
See how to set up, or clean up, test classes and methods in Spock.
Setting up the Dependencies

Part of tutorial

Setting up the Dependencies
Add Spock framework dependencies to the project.
Mocks

Part of tutorial

Mocks
We can provide "empty" objects, so we don't have to initialise the whole application to test a section, and we can use mocks to check our code is making the calls we expect.
Label Flexibility

Part of tutorial

Label Flexibility
Spock supports a range of different test labels to help you write the most readable tests.