{"action":"created","issue":{"url":"https://api.github.com/repos/saucelabs/sauce_ruby/issues/337","labels_url":"https://api.github.com/repos/saucelabs/sauce_ruby/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/saucelabs/sauce_ruby/issues/337/comments","events_url":"https://api.github.com/repos/saucelabs/sauce_ruby/issues/337/events","html_url":"https://github.com/saucelabs/sauce_ruby/issues/337","id":91264889,"number":337,"title":"Tests run fine on sauce until we enable parallelization","user":{"login":"lanceblais","id":2364587,"avatar_url":"https://avatars.githubusercontent.com/u/2364587?v=3","gravatar_id":"","url":"https://api.github.com/users/lanceblais","html_url":"https://github.com/lanceblais","followers_url":"https://api.github.com/users/lanceblais/followers","following_url":"https://api.github.com/users/lanceblais/following{/other_user}","gists_url":"https://api.github.com/users/lanceblais/gists{/gist_id}","starred_url":"https://api.github.com/users/lanceblais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanceblais/subscriptions","organizations_url":"https://api.github.com/users/lanceblais/orgs","repos_url":"https://api.github.com/users/lanceblais/repos","events_url":"https://api.github.com/users/lanceblais/events{/privacy}","received_events_url":"https://api.github.com/users/lanceblais/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-26T14:26:09Z","updated_at":"2015-06-29T15:42:13Z","closed_at":null,"body":"Hello,\r\n\r\nWe're using RSpec and SauceLabs to run our Selenium tests.\r\n\r\nWe've followed all the information on the Wiki and we're able to run `bundle exec rspec spec/path/to/e2e`.\r\n\r\nWhen we enable parallelization and run `bundle exec parallel_rspec spec/path/to/e2e` we get this error:\r\n\r\n```\r\n     Failure/Error: launch_cms_homepage()\r\n     StandardError:\r\n       No browser has been configured.\r\n       \r\n       It seems you're trying to run your tests in parallel, but haven't configured your specs/tests to use the Sauce integration.\r\n       \r\n       To fix this, add :sauce => true to your specs or make your tests subclasses of Sauce::TestCase or Sauce::RailsTestCase.\r\n       \r\n       For more details check the gem readme at https://github.com/saucelabs/sauce_ruby/blob/master/README.markdown\r\n     # ./page_objects/shared/launch_browsers.rb:4:in `launch_cms_homepage'\r\n     # ./spec/features/end_to_end/1/ma_agenda/ma_agenda_fixes_spec.rb:678:in `block (2 levels) in <top (required)>'\r\n```\r\n\r\nNote: launch_cms_homepage() is a method defined in one of the helpers we pull in.\r\n\r\nHas this been seen before?\r\n\r\nA related question, what strategy does the parallelization take for a folder of specs?\r\n\r\nThe `e2e` folder has `e2e/1/test1.rb` which has a bunch of describe blocks and `e2e/1/test2.rb` also has a bunch of specs. Is the parallelization at the describe block level, the file level, or other?\r\n\r\nThank you!\r\n\r\n```\r\n$ bundle exec gem list\r\n\r\n*** LOCAL GEMS ***\r\n\r\nbigdecimal (1.2.6)\r\nbundler (1.9.6)\r\ncapybara (2.4.4)\r\nchildprocess (0.5.2)\r\ncmdparse (3.0.1)\r\ndiff-lcs (1.2.4)\r\ndomain_name (0.5.24)\r\nffi (1.9.3)\r\nhighline (1.7.2)\r\nhttp-cookie (1.0.2)\r\nio-console (0.4.2)\r\njar_wrapper (0.1.7)\r\njson (1.8.2)\r\nmime-types (2.0)\r\nmini_portile (0.6.0)\r\nminitest (4.7.5)\r\nmulti_json (1.8.2)\r\nnet-http-persistent (2.9.4)\r\nnet-ssh (2.9.2)\r\nnet-ssh-gateway (1.2.0)\r\nnetrc (0.10.3)\r\nnokogiri (1.6.3.1)\r\nparallel (1.6.0)\r\nparallel_tests (1.3.7)\r\npower_assert (0.2.2)\r\npsych (2.0.8)\r\nrack (1.5.2)\r\nrack-test (0.6.2)\r\nrake (0.9.2.2)\r\nrdoc (3.9.5)\r\nrequire_all (1.3.2)\r\nrest-client (1.8.0)\r\nrspec (2.13.0)\r\nrspec-core (2.13.0)\r\nrspec-expectations (2.13.0)\r\nrspec-mocks (2.13.0)\r\nrspec-retry (0.4.0)\r\nrubyzip (1.0.0)\r\nsauce (3.5.6)\r\nsauce_whisk (0.0.18)\r\nselenium (0.2.11)\r\nselenium-webdriver (2.45.0)\r\nunf (0.1.4)\r\nunf_ext (0.0.7.1)\r\nwebsocket (1.0.7)\r\nwebsocket-driver (0.3.0)\r\nwebsocket-extensions (0.1.2)\r\nxpath (2.0.0)\r\nzip (2.0.2)\r\n```"},"comment":{"url":"https://api.github.com/repos/saucelabs/sauce_ruby/issues/comments/116736913","html_url":"https://github.com/saucelabs/sauce_ruby/issues/337#issuecomment-116736913","issue_url":"https://api.github.com/repos/saucelabs/sauce_ruby/issues/337","id":116736913,"user":{"login":"lanceblais","id":2364587,"avatar_url":"https://avatars.githubusercontent.com/u/2364587?v=3","gravatar_id":"","url":"https://api.github.com/users/lanceblais","html_url":"https://github.com/lanceblais","followers_url":"https://api.github.com/users/lanceblais/followers","following_url":"https://api.github.com/users/lanceblais/following{/other_user}","gists_url":"https://api.github.com/users/lanceblais/gists{/gist_id}","starred_url":"https://api.github.com/users/lanceblais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanceblais/subscriptions","organizations_url":"https://api.github.com/users/lanceblais/orgs","repos_url":"https://api.github.com/users/lanceblais/repos","events_url":"https://api.github.com/users/lanceblais/events{/privacy}","received_events_url":"https://api.github.com/users/lanceblais/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T15:42:13Z","updated_at":"2015-06-29T15:42:13Z","body":"The tests get kicked off on Saucelabs by running `bundle exec rake spec` but as soon as I add the `sauce` part to the command it fails by trying to look in other directories.\r\n\r\nSo: same issue as above.\r\n\r\n```\r\nrequire 'bundler/setup'\r\nrequire 'sauce'\r\nrequire 'rspec/core/rake_task'\r\n\r\nRSpec::Core::RakeTask.new(:spec) do |t|\r\n  t.pattern = 'spec/features/end_to_end/**/*.rb'\r\nend\r\n```"}}