Skip to content
Write Grails functional tests with Spock
Groovy
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
grails-app/conf
scripts
src/groovy/grails/plugin/functional/spock
test
.gitignore
FunctionalSpockGrailsPlugin.groovy
README.md
application.properties

README.md

Grails functional-spock plugin

Allows you to write and run Spock specs under the functional test scope. For details on how to write Spock specs see the documentation for the spock plugin.

Installation

For grails-2 add the following line to the plugins section of your BuildConfig.groovy

compile ":functional-spock:0.7"

For grails-1.3 add the following line to the plugins section of your BuildConfig.groovy

compile ":functional-spock:0.6", {
    excludes "spock-grails-support"
}

And to your dependencies section:

provided 'org.spockframework:spock-grails-support:0.5-groovy-1.7', {
    exclude 'groovy-all'
}

Running Tests

grails test-app functional:spock
Something went wrong with that request. Please try again.