Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An example project for using Geb in a Gradle build (Spock and JUnit 4)
branch: master

This branch is 35 commits behind geb:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gradle/wrapper
src/test
.gitignore
build.gradle
gradlew
gradlew.bat
readme.md

readme.md

This is an example of incorporating Geb into a Gradle build. It shows the use of Spock and JUnit 4 tests.

The build is setup to work with HTMLUnit, FireFox and Chrome. Have a look at the build.gradle and the src/test/resources/GebConfig.groovy files.

The following commands will launch the tests with the individual browsers:

./gradlew htmlunitTest
./gradlew chromeTest
./gradlew firefoxTest

To run with all, you can run:

./gradlew test
Something went wrong with that request. Please try again.