Spock is a testing and specification framework for Java and Groovy applications. The highly expressive specification language makes it easy to create and maintain the code.
Spock is a testing and specification framework forjava and groovy applications. The highly expressive specification language makes it easy to create and maintain the code.
The Spock framework is compatible with most IDEs and build tools and the specifications can be run and checked from inside your IDE. As long as it can run junit, it can run Spock.
Getting Started:
- Spock Project Home Page
- Getting Started Covers multiple IDEs
- Official Documentation
Testing Tutorials:
- Spock Tutorial 5 part series of a great step-by-step introduction into Spock
- Getting Started with Spock and Groovy Video demoing Spock in IntelliJ good quick intro even if you are not an IntelliJ user
- Spock and Mock Object Basics Continues on from previous video tutorial
- Idiomatic Spock Talk by Rob Fletcher (Project Member) about how to write good Spock tests