Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Sep 9, 2015
1 parent 86d8b5d commit e696b5e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Geb Plugin
Grails 3.x Geb Plugin
===

Geb Functional Testing for Grails 3.0
Expand All @@ -7,3 +7,28 @@ Geb Functional Testing for Grails 3.0
This plugin just provides the Geb dependencies and a `create-functional-test` command for generating Geb tests in a Grails 3.0 app. For further reference please see the [Geb documentation](http://www.gebish.org)

Geb tests are used extensively in the [Grails 3.x functional test suite](https://github.com/grails/grails3-functional-tests) if you are looking for examples.

Additional Drivers
=======

To setup additional drivers you need to add the driver to your `build.gradle` for example:

testRuntime 'com.github.detro:phantomjsdriver:1.2.0'

Then you need to create a `GebConfig.groovy` file to your `src/test/resources/` directory. For example:

/*
This is the Geb configuration file.

See: http://www.gebish.org/manual/current/#configuration
*/
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver

waiting {
timeout = 2
}
driver = { new PhantomJSDriver() }


0 comments on commit e696b5e

Please sign in to comment.