Access Keys:
Skip to content (Access Key - 0)

Spock - the smarter testing and specification framework


This presentation will introduce Spock, a young but aspiring testing and specification framework for the JVM.
We will start out by showing Spock's beautiful and highly expressive specification language. Built on top of Groovy, it removes the need for assertion APIs, record-and-replay mocking APIs, and other unnecessary distractions. What remains is a succinct description of a program's desired behavior.
Leaving theory behind us, we will have fun with Spock in action by writing and running specifications in different environments. Along the way, we will discuss how Spock compares to well-known testing tools like JUnit and EasyMock.
Many of Spock's features are implemented by hooking into the Groovy compiler and rewriting specifications at compile-time. Fortunately, this is completely transparent to users and execution environments. Nevertheless, we will reveal some of the dirty little secrets.
Towards the end of the presentation, we will present our vision for Spock's future, and show how you can get involved.


Peter Niederwieser is a software developer from Linz, Austria. Over the past several years, he has worked on different projects in the Java Enterprise space. In his spare time, he enjoys hacking Groovy and Scala, traveling the world and playing chess. Peter is a Groovy committer and creator of the Spock framework.

View talk on

Adaptavist Theme Builder (4.0.2) Atlassian Confluence 3.2, the Enterprise Wiki: Intranet software for documentation and knowledge management