title: Run Geb tests on Jenkins
body: <p>I've written some functional tests for my Grails app using <a href="http://www.gebish.org/" rel="nofollow">Geb</a>. I've configured my tests identically to <a href="https://github.com/craigatk/geb-example" rel="nofollow">this example project</a>, which allows you to <a href="https://github.com/craigatk/geb-example/blob/master/test/functional/GebConfig.groovy" rel="nofollow">specify a list of browsers</a> that the tests may be run against.</p>
  
  <p>The tests pass when I run them locally against Firefox. However, they fail if I run them on Jenkins, because Firefox cannot run in headless mode. A common solutions for this problem seems to be to use XVFB to emulate a display, so that Firefox can run on a headless machine. I've successfully installed XVFB on the Jenkins machine, but am not sure what additional configuration is required in order to get XVFB working with the Jenkins job that runs the functional tests?</p>
  
  <p>There is an <a href="https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin" rel="nofollow">XVFB Jenkins plugin</a> available, should I use this or is there another approach that people have been successful with?</p>