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

haru01/geb-example-gradle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 chromeTest
./gradlew firefoxTest

To run with all, you can run:

./gradlew test

or

gradle build

in eclipse

VM arguments: -Dgeb.build.reportsDir=/tmp -Dgeb.env=firefox

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

  • Shell 71.0%
  • Groovy 29.0%