Skip to content

An example project for using Geb in a Gradle build (Spock and JUnit 4)

Notifications You must be signed in to change notification settings

mpluta-airhelp/geb-example-gradle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Geb and Gradle Project

Build Status

Description

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 src/test/resources/GebConfig.groovy files.

Usage

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 test

Replace ./gradlew with gradlew.bat in the above examples if you're on Windows.

Questions and issues

Please ask questions on Geb user mailing list and raise issues in Geb issue tracker.

About

An example project for using Geb in a Gradle build (Spock and JUnit 4)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%