Last Updated: February 25, 2016
·
3.426K
· adamjacobbecker

Run Capybara-Webkit tests in Travis-CI

in your .travis.yml, replace

script: rspec

with

script: xvfb-run rspec

5 Responses
Add your response

what is the rest of your .travis,yml?

/usr/bin/xvfb-run: 182: /usr/bin/xvfb-run: rspec: not found
The command "xvfb-run rspec" exited with 127.

over 1 year ago ·

it should be something like this script:- xvfb-run bundle exec rspec spec/features/*.rb

over 1 year ago ·

same error for me
/usr/bin/xvfb-run: rspec: not found

over 1 year ago ·

This post and @ahmedattyah's suggestion helped fix my issue in Travis-CI. Thanks for sharing!

over 1 year ago ·

What worked for me (snippet of my travis.yml):

env:
  - TEST_DIRECTORY=spec/models
    SPEC_OPTS="--color --profile"
  - TEST_DIRECTORY=spec/classes
    SPEC_OPTS="--color --profile"
...
script: xvfb-run bundle exec rspec $TEST_DIRECTORY
over 1 year ago ·