sauce-archives / sauce_ruby

This is the Ruby client adapter for testing with Sauce Labs, a Selenium-based browser testing service (saucelabs.com).
Apache License 2.0
98 stars 115 forks source link

Running ruby sauce tests using manually started tunnel? #347

Closed lanceblais closed 9 years ago

lanceblais commented 9 years ago

Hello,

Is it possible to start up a tunnel manually via command line and have the sauce gem use that, or are we bound to setting the :sauce_connect_4_executable option in the sauce_helper.rb ?

Reason I ask is, we're having issues running it on CircleCI and their recommendation is to establish the tunnel first, then once it's up, run our tests.

DylanLacey commented 9 years ago

Absolutely. You can just tell the gem to not try to start a tunnel:

Sauce.config do |c|
  c[:start_tunnel] = false
end

Assuming you're not using tunnel identifiers, your tests will automatically use a tunnel started with the same credentials.