My Cucumber/Capybara/Sauce setup works fine on OS X but it is failing on CircleCI. Specifically, CircleCI can successfully create a tunnel, but then simply hangs when trying to start a cucumber session:
dependencies:
post:
- wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
- tar -xzf sc-latest-linux.tar.gz
test:
override:
- ./bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY -f ~/sc_ready:
background: true
pwd: sc-*-linux
# Wait for tunnel to be ready
- while [ ! -e ~/sc_ready ]; do sleep 1; done
- bundle exec cucumber features/ --format pretty
As part of debugging, I ssh'ed into a CircleCI virtual machine, ran bundle exec rails server -p 9887 and was able to connect to the server via a Sauce interactive browser session. So, I know the Sauce Connect tunneling is working correctly.
My suspicion is that the problem is in the sauce_ruby gem, because bundle exec rspec also hangs when I have gem 'sauce', '3.4.9' in my Gemfile but works correctly when I remove it (and I'm not even using sauce for any RSpec tests). However, everything works fine on my OS X machine, making this painful to debug.
My Cucumber/Capybara/Sauce setup works fine on OS X but it is failing on CircleCI. Specifically, CircleCI can successfully create a tunnel, but then simply hangs when trying to start a cucumber session:
Here is
features/support/sauce_helper.rb
:And here is my circle.yml:
As part of debugging, I ssh'ed into a CircleCI virtual machine, ran
bundle exec rails server -p 9887
and was able to connect to the server via a Sauce interactive browser session. So, I know the Sauce Connect tunneling is working correctly.My suspicion is that the problem is in the sauce_ruby gem, because
bundle exec rspec
also hangs when I havegem 'sauce', '3.4.9'
in my Gemfile but works correctly when I remove it (and I'm not even using sauce for any RSpec tests). However, everything works fine on my OS X machine, making this painful to debug.