Skip to content

krichards/tp-geb-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an example of incorporating Geb and Spock into a Gradle build for TravisPerkins.

See http://www.gebish.org/ (Overview and reference manual), and http://spockframework.org (Spock testing framework) for more information.

The build is setup to work with FireFox, Chrome and Htmlunit. 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
./gradlew htmlunitTest

Note:Some tests may not pass with htmlUnit as it does not support javascript. To run with all, you can run:

./gradlew test

To run an individual test in IntelliJ (or other) add the following to the default JVM system properties of the test runner.

'-Dgeb.driver=htmlunit -Djava.net.preferIPv4Stack=true -Dwebdriver.chrome.driver=C:\Users\it_training\IdeaProjects\chromedriver.exe'

About

Example GEB Gradle Project for Travis Perkins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published