sbb6yq
Last Updated: February 25, 2016
·
3.118K
· adamjacobbecker
9b335f8228dbbf55711ba32bab4cd591

Run Capybara-Webkit tests in Travis-CI

in your .travis.yml, replace

script: rspec

with

script: xvfb-run rspec
Say Thanks
Respond

5 Responses
Add your response

9157
50a2c96aabbc1351a354405846136f45

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
8031aee46f5374b0ad4f7272e13f2d52

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

over 1 year ago ·
15127
32d80da41830a6e6c1bb3eb977537e3e

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

over 1 year ago ·
16784
2c2e50cf5fd8ef0da3a0c9cad74ced47

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

over 1 year ago ·
22873
Hat

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 ·