The Enterprise-ready testing and specification framework.
Java Groovy JavaScript XSLT HTML CSS
Latest commit 94649ac Aug 22, 2016 @robfletcher robfletcher committed on GitHub Merge pull request #635 from leonard84/create-spock-bom
Add spock-bom project
Failed to load latest commit information.
.github update to rc-2 Aug 18, 2016
.idea changes to idea files Dec 25, 2013
buildSrc add buildSrc to allow use of spock-gradle from spock build Feb 5, 2013
config Sign and publish artifacts from Shippable Feb 28, 2015
docs Refactor docs to have tested examples (#638) Aug 22, 2016
gradle Merge pull request #108 from siordache/partialMock Jun 1, 2016
spock-bom Add spock-bom project Aug 16, 2016
spock-core Support https protocol and multiple values in IssueExtension class. Jul 16, 2016
spock-gradle Start iteration for 1.1-SNAPSHOT Mar 2, 2015
spock-guice Update Mar 4, 2015
spock-report Don't publish spock-gradle and spock-report for now Feb 28, 2015
spock-specs Refactor docs to have tested examples (#638) Aug 22, 2016
spock-spring Change boot-test to only execute when Java 7 or higher is available Aug 8, 2016
spock-tapestry Use Java 1.8 compatible dependencies for builds running on Java 1.8 Mar 1, 2015
spock-unitils convenient interceptors for fixture methods Nov 23, 2012
.editorconfig Added .editorconfig Mar 26, 2015
.gitignore Improve build configuration for shippable CI Sep 14, 2014
.travis.yml Add gradle build scan plugin and enable it for CI (#631) Aug 12, 2016 Add good commit message requirement in Aug 8, 2016
LICENSE google code import Feb 18, 2009
NOTICE updated notice and readme May 26, 2010 Add missing space (#637) Aug 22, 2016
appveyor.yml Add gradle build scan plugin and enable it for CI (#631) Aug 12, 2016
build.gradle Merge pull request #635 from leonard84/create-spock-bom Aug 22, 2016
gradlew Updated to gradle 2.13 variant Jun 1, 2016
gradlew.bat Updated to gradle 2.13 variant Jun 1, 2016
settings.gradle Add spock-bom project Aug 16, 2016
shippable.yml Add gradle build scan plugin and enable it for CI (#631) Aug 12, 2016

License Maven Central Linux Build Status Windows Build Status Gitter

Spock Framework

Spock is a developer testing and specification framework for Java and Groovy applications. To learn more about Spock, visit To run a sample spec in your browser, go to

Latest Versions

The latest release version is 1.1-rc-2 (1.1-groovy-2.0-rc-2, 1.1-groovy-2.3-rc-2, 1.1-groovy-2.4-rc-2), released on 2016-06-29. The current development version is 1.1-SNAPSHOT (1.1-groovy-2.0-SNAPSHOT, 1.1-groovy-2.3-SNAPSHOT, 1.1-groovy-2.4-SNAPSHOT).

Releases are available from Maven Central. Development snapshots are available from Sonatype OSS.


  • spock-core -- Core framework. This is the only mandatory module.
  • spock-specs -- Specifications for spock-core, implemented using Spock. Not required for using Spock.
  • spock-spring -- Integration with the Spring TestContext Framework.
  • spock-tapestry -- Integration with the Tapestry 5 IoC container.
  • spock-guice -- Integration with Guice 2/3.
  • spock-unitils -- Integration with Unitils.
  • spock-report -- Interactive, business-friendly HTML reports.


Supported versions

Spock is supported for Java version 6, 7, and 8. Spock is supported for Groovy version 2.0 (Not supported for Java 8+), 2.3, 2.4

The tests are testing spock with a specific versions (variants) of groovy. Default is groovy version 2.4

The groovy 2.4 variant should pass on all supported JDK versions:

./gradlew clean build

(Windows: gradlew clean build). All build dependencies, including the build tool itself, will be downloaded automatically (unless already present).

If you are using JDK 6 or 7 you can specify groovy version 2.0 with using -Dvariant=2.0 and it should pass as well:

./gradlew clean build -Dvariant=2.0


Contributions are welcome! Please see the contributing page for detailed instructions.


If you have any comments or questions, please direct them to the user forum. All feedback is appreciated!


Live Long And Prosper!

The Spock Framework Team