Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Enterprise-ready testing and specification framework.

Octocat-spinner-32 .idea changes to idea files December 25, 2013
Octocat-spinner-32 buildSrc add buildSrc to allow use of spock-gradle from spock build February 05, 2013
Octocat-spinner-32 config switched to directory-based idea project, to be used together with id… December 25, 2013
Octocat-spinner-32 docs converted reference docs to asciidoc(tor) April 03, 2014
Octocat-spinner-32 gradle removed restriction on not running 'gradle idea' due to problems with… April 03, 2014
Octocat-spinner-32 spock-core improved implementation of handling implicit calls on method params December 31, 2013
Octocat-spinner-32 spock-gradle first cut of gradle plugin for HTML report generation February 05, 2013
Octocat-spinner-32 spock-guice added convenient way to intercept (shared) initializer method November 23, 2012
Octocat-spinner-32 spock-maven fixed spock version in maven plugin.xml October 13, 2012
Octocat-spinner-32 spock-report updated to gradle 1.7 August 07, 2013
Octocat-spinner-32 spock-specs improved implementation of handling implicit calls on method params December 31, 2013
Octocat-spinner-32 spock-spring switch back to spring 3.2.2 to make code compile September 12, 2013
Octocat-spinner-32 spock-tapestry added javax.inject as a test dependency, turned embedded spec into re… March 17, 2013
Octocat-spinner-32 spock-unitils convenient interceptors for fixture methods November 23, 2012
Octocat-spinner-32 .gitignore switched to directory-based idea project, to be used together with id… December 25, 2013
Octocat-spinner-32 .travis.yml fixed file name of travis script August 06, 2012
Octocat-spinner-32 CONTRIBUTING.md added link January 07, 2014
Octocat-spinner-32 LICENSE google code import February 18, 2009
Octocat-spinner-32 NOTICE updated notice and readme May 26, 2010
Octocat-spinner-32 README.md no more readme updates January 25, 2013
Octocat-spinner-32 build.gradle converted reference docs to asciidoc(tor) April 03, 2014
Octocat-spinner-32 gradlew bump gradle version to 1.4-rc-1 January 18, 2013
Octocat-spinner-32 gradlew.bat Update all the wrapper files to m7. February 09, 2012
Octocat-spinner-32 settings.gradle add spock-gradle and spock-report to overall build February 05, 2013
README.md

Spock Framework

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

Latest Versions

The latest release version is 0.7 (0.7-groovy-1.8, 0.7-groovy-2.0), released on 2012-10-08. The current development version is 1.0-SNAPSHOT (1.0-groovy-1.8-SNAPSHOT, 1.0-groovy-2.0-SNAPSHOT).

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

Modules

  • 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-maven -- Extended Maven support. Note that this module is optional; it is not required for using Spock with Maven.
  • spock-example -- Self-contained example project with Ant, Gradle, and Maven builds. See spock-example/README for more information.
  • 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.
  • spock-grails -- The Grails plugin has become its own project hosted at https://github.spockframework.org/spock-grails.

Building Spock

The only prerequisite is that you have JDK 5 or higher installed.

After cloning the project, type ./gradlew clean build (Windows: gradlew clean build). All build dependencies, including Gradle itself, will be downloaded automatically (unless already present).

Resources

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

Happy spec'ing!

Peter Niederwieser
Creator, Spock Framework
Twitter | Blog

Something went wrong with that request. Please try again.