Run Capybara-Webkit tests in Travis-CI
in your .travis.yml, replace
script: rspec
with
script: xvfb-run rspec
Written by Adam Becker
Related protips
5 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#