sbb6yq
Last Updated: February 25, 2016
·
3.273K
· 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

9157

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 ·
11674

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

over 1 year ago ·
15127

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

over 1 year ago ·
16784

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

over 1 year ago ·
22873

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 ·