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.
The latest release version is 1.1 (1.1-groovy-2.0, 1.1-groovy-2.3, 1.1-groovy-2.4), released on 2017-05-05. The current development version is 1.2-SNAPSHOT (1.2-groovy-2.4-SNAPSHOT).
NOTE: Spock 1.2 drops support for Java 6, Groovy 2.0 and Groovy 2.3.
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.
Spock is supported for Java version 7, and 8.
Spock is supported for Groovy version 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).
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!
- Spock Homepage -- http://spockframework.org
- Spock Web Console -- http://webconsole.spockframework.org
- GitHub Organization -- http://github.spockframework.org
- Reference Documentation -- http://docs.spockframework.org
- Old Wiki -- http://wiki.spockframework.org
- Javadoc -- http://javadoc.spockframework.org
- User Forum -- http://forum.spockframework.org
- Developer Forum -- http://dev-forum.spockframework.org
- Issue Tracker -- http://issues.spockframework.org
- Build Server -- http://builds.spockframework.org
- Spock Example Project -- http://github.spockframework.org/spock-example
- Twitter -- http://twitter.spockframework.org
Live Long And Prosper!
The Spock Framework Team