A collection of spock specifications and example code.
Groovy
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
.gitignore
README.markdown
build.gradle
pom.xml
spock-examples.iml

README.markdown

Background:

This project contains a number of Spock specifications. "Spock is a testing and specification framework for Java and Groovy applications" http://code.google.com/p/spock/

Resources:

A great place to start is http://code.google.com/p/spock/wiki/SpockBasics.

Prerequisites:

Install one or both of:

Gradle - http://www.gradle.org IntelliJ - http://www.jetbrains.com

Tests:

You'll probably want to review these tests in the following order as they get more complex as we go:

  • Simple
  • WhereBlockExample
  • SimpleDomainExample
  • DomainExampleWithSetupSpec