the enterprise ready specification framework


What is it?

Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language. Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers. Spock is inspired from JUnit, RSpec, jMock, Mockito, Groovy, Scala, Vulcans, and other fascinating life forms.

How Do I Get Started?

Read ten reasons why Spock is for you, run your first spec in Spock Web Console, fork the spock-example project, learn how to write a specification, or dive into the reference documentation.


with Gradle

testCompile "org.spockframework:spock-core:1.1-groovy-2.4-rc-2"

with Maven:


Where Are The Docs?

How Can I Get Involved?


Thanks to JetBrains for providing IDEA and TeamCity licenses.

YourKit is kindly supporting open source projects with its full-featured Java Profiler.

YourKit, LLC is the creator of innovative and intelligent tools for profiling Java and .NET applications. Take a look at YourKit's leading software products: YourKit Java Profiler and YourKit .NET Profiler.

Built with Compositor.io