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

Seeing an error in the sauce gem #346

Open lanceblais opened 9 years ago

lanceblais commented 9 years ago

Hello, I am using ruby 2.0.0-p645 and when I run bundle exec rake sauce:spec I see the following:

Note: This happens when I run it in a docker container. Might be related? It otherwise works fine from my Mac running ruby 2.0.0-p247.

  Sauce public job link: 
     Failure/Error: Unable to find matching line from backtrace
     NoMethodError:
       undefined method `map' for nil:NilClass
     # /vendor/bundle/ruby/2.0.0/gems/sauce-3.5.6/lib/sauce/config.rb:223:in `caps_for_location'
     # /vendor/bundle/ruby/2.0.0/gems/sauce-3.5.6/lib/sauce/rspec/rspec.rb:126:in `block in included'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:247:in `instance_eval_with_args'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:93:in `block (2 levels) in run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:95:in `call'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:95:in `run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/hooks.rb:424:in `run_hook'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:325:in `run_around_each_hooks'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:256:in `with_around_each_hooks'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example.rb:111:in `run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:386:in `block in run_examples'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:382:in `map'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:382:in `run_examples'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/example_group.rb:367:in `run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:28:in `map'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:28:in `block in run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/reporter.rb:34:in `report'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/command_line.rb:25:in `run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/runner.rb:80:in `run'
     # /vendor/bundle/ruby/2.0.0/gems/rspec-core-2.13.0/lib/rspec/core/runner.rb:17:in `block in autorun'
lanceblais commented 9 years ago

Anything on this?

DylanLacey commented 9 years ago

I think the gem is choking on RSpec when it's trying to give you a public job link, but it;s weird it's only on containers.

What happens if you run your tests serially?

Zechtitus commented 9 years ago

seeing the same thing... weird thing is it works fine using the RubyMine IDE... cannot get tests to run thru the console