sgo / grails-functional-spock

Write Grails functional tests with Spock
2 stars 2 forks source link

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