You can find detailed descriptions in the Wiki
Grails project with tests based on Spock.
- For examples based on Grails 1.3.7, take a look at branch 1_3_7
- For examples based on Grails 2.2.0, take a look at branch 2_2_0
- For examples based on Grails 2.3.7, take a look at branch 2_3_7
- For examples based on Grails 2.4.0, take a look at branch 2_4_0
It contains examples for:
- Domain classes
- Service classes
- Controller classes
- Services
- Scaffolding CRUD actions (Based on Geb)
- Checkout the source
- run grailsw test-app unit:spock to execute all unit tests based on spock
- run grailsw test-app integration:spock to execute all integration tests based on spock