Skip to content
The Enterprise-ready testing and specification framework.
Java Groovy JavaScript XSLT HTML CSS
Latest commit bf61631 @leonard84 leonard84 Merge pull request #560 from szpak/tech/enhancedMockSignature
Enhance Mock()/Stub()/Spy() signature to support generic return types
Failed to load latest commit information.
.idea changes to idea files
buildSrc add buildSrc to allow use of spock-gradle from spock build
config Sign and publish artifacts from Shippable
docs Fix data driven testing example in documentation
gradle Upgraded Gradle and Groovy versions
spock-core Enhance Mock()/Stub() signature
spock-gradle Start iteration for 1.1-SNAPSHOT
spock-guice Update GuiceExtension.java
spock-report Don't publish spock-gradle and spock-report for now
spock-specs Add support for detached mocks, stubs, and spies (java-only)
spock-spring Add support for detached mocks, stubs, and spies (java-only)
spock-tapestry Use Java 1.8 compatible dependencies for builds running on Java 1.8
spock-unitils convenient interceptors for fixture methods
.editorconfig Added .editorconfig
.gitignore Improve build configuration for shippable CI
.travis.yml changed Slack channel for Travis CI
CONTRIBUTING.md updated docs to reflect IntelliJ gradle import fails #70
LICENSE google code import
NOTICE updated notice and readme
README.md Prepare 1.0 release
appveyor.yml Invoke `appveyorCiBuild` rather than `build` task
build.gradle Merge pull request #537 from mkordas/patch-1
gradlew Upgraded Gradle and Groovy versions
gradlew.bat Update all the wrapper files to m7.
settings.gradle Delete spock-maven subproject
shippable.yml Remove TEST_KEY

README.md

License Maven Central Linux Build Status Windows Build Status

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 1.0 (1.0-groovy-2.0, 1.0-groovy-2.3, 1.0-groovy-2.4), released on 2015-03-02. 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.

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-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.

Building

The only prerequisite is JDK 6 or higher.

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

Contributing

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

Support

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

Links

Live Long And Prosper!

The Spock Framework Team

Something went wrong with that request. Please try again.