Created
September 3, 2013 11:11
-
-
Save rsslldnphy/6422524 to your computer and use it in GitHub Desktop.
Headless testing in teamcity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## add the following to your Gemfile | |
gem 'headless' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## this should be in features/support | |
require 'headless' | |
Before do | |
unless RUBY_PLATFORM[/darwin/] | |
headless = Headless.new | |
headless.start | |
end | |
end |
Having run this on a non-mac machine this does break the test. To fix this, you just need to run the following command into your terminal:
sudo apt-get install xvfb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thinking about it this will probably break for you locally unless you're using a mac. Is there some better way to tell if we're running on the CI server?