Skip to content

Instantly share code, notes, and snippets.

@isa
Created February 5, 2013 08:10
Show Gist options
  • Save isa/4713014 to your computer and use it in GitHub Desktop.
Save isa/4713014 to your computer and use it in GitHub Desktop.
capybara-webkit with xvfb
Webkit needs an X server in order to be able to render. If you're running on any Linux server distribution then you won't have an X server running. You can use the xvfb package to generate a virtual framebuffer for the duration of your tests. For example:
DISPLAY=localhost:1.0 xvfb-run cucumber
If you are running this on a build server you might have something like this:
DISPLAY=localhost:1.0 xvfb-run cucumber -p default -f junit -o cucumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment