Example Geb and Gradle Project
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 Firefox, Chrome and PhantomJS. Have a look at the
build.gradle and the
The following commands will launch the tests with the individual browsers:
./gradlew chromeTest ./gradlew firefoxTest ./gradlew phantomJsTest
To run with all, you can run:
gradlew.bat in the above examples if you're on Windows.