bmuschko/gradle-gae-plugin — pull request #22 by erdi (2012-05-27 20:21:59+00:00)
Title: Gae functional test

This pull request brings in a new task - `gaeFunctionalTest`. This task is really simple - it's just a Test task wich runs tests from a new source set (named `functionalTest` and located at `/src/functionalTest` by default) but before execution it also starts the development server in daemon mode making it possible to functionally test the app. This seems to be a common scenario - that's why I see a point in adding it.

Thanks to the task testing with Geb, for example, would be as easy as adding a new dependency:
`dependencies
{
functionalTestCompile 'org.codehaus.geb:geb-spock:0.7.0', 'org.seleniumhq.selenium:selenium-firefox-driver:2.20.0'
}`

putting your specs in:
`src/functionalTest/groovy`

Adding the url to `GebConfig.groovy`:
`baseUrl = 'http://localhost:8080/'`

and running:
`./gradlew gaeFunctionalTest`

There is also integration with the `idea` plugin: if you execute `./gradlew idea` after adding the new dependencies and changing `GebConfig.groovy` you will be able to run your specs directly from your IDE (just rememeber to start the local dev server first in a console).

I will write a blog post about the usage if this gets merged and released.