{"action":"opened","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1264","repository_url":"https://api.github.com/repos/webdriverio/webdriverio","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1264/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1264/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/1264/events","html_url":"https://github.com/webdriverio/webdriverio/issues/1264","id":150374117,"number":1264,"title":"CLI arguments for SauceLabs broken?","user":{"login":"khirakawa","id":613822,"avatar_url":"https://avatars.githubusercontent.com/u/613822?v=3","gravatar_id":"","url":"https://api.github.com/users/khirakawa","html_url":"https://github.com/khirakawa","followers_url":"https://api.github.com/users/khirakawa/followers","following_url":"https://api.github.com/users/khirakawa/following{/other_user}","gists_url":"https://api.github.com/users/khirakawa/gists{/gist_id}","starred_url":"https://api.github.com/users/khirakawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khirakawa/subscriptions","organizations_url":"https://api.github.com/users/khirakawa/orgs","repos_url":"https://api.github.com/users/khirakawa/repos","events_url":"https://api.github.com/users/khirakawa/events{/privacy}","received_events_url":"https://api.github.com/users/khirakawa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T13:46:42Z","updated_at":"2016-04-22T13:46:42Z","closed_at":null,"body":"## The problem\r\n\r\nPassing in `--user` and `--key` on the CLI does not run tests in SauceLabs.  Instead, the tests attempt to run locally.  If a selenium standalone server is not running, then an error is thrown:\r\n\r\n```\r\nERROR: Couldn't connect to selenium server\r\nchrome\r\n    at new RuntimeError (/Users/khirakawa/work/starblaster-test-runner/example/node_modules/webdriverio/build/lib/utils/ErrorHandler.js:115:12)\r\n    at Request._callback (/Users/khirakawa/work/starblaster-test-runner/example/node_modules/webdriverio/build/lib/utils/RequestHandler.js:264:37)\r\n    at self.callback (/Users/khirakawa/work/starblaster-test-runner/example/node_modules/webdriverio/node_modules/request/request.js:373:22)\r\n    at emitOne (events.js:77:13)\r\n    at Request.emit (events.js:169:7)\r\n    at Request.onRequestError (/Users/khirakawa/work/starblaster-test-runner/example/node_modules/webdriverio/node_modules/request/request.js:971:8)\r\n    at emitOne (events.js:77:13)\r\n    at ClientRequest.emit (events.js:169:7)\r\n    at Socket.socketErrorListener (_http_client.js:258:9)\r\n    at emitOne (events.js:77:13)\r\n```\r\n\r\n## Environment\r\n\r\n* WebdriverIO version: 4.0.5\r\n* Node.js version: 4.3.0\r\n* [Standalone mode or wdio testrunner](http://webdriver.io/guide/getstarted/modes.html): wdio testrunner\r\n* if wdio testrunner, running synchronous or asnychronous tests: synchronous\r\n* Additional wdio packages used (if applicable):\r\n\r\n```\r\n\"wdio-dot-reporter\": \"0.0.5\",\r\n\"wdio-junit-reporter\": \"0.0.2\",\r\n\"wdio-mocha-framework\": \"^0.2.12\",\r\n\"wdio-sauce-service\": \"^0.2.2\",\r\n```\r\n\r\n## Details\r\n\r\nThe command used:\r\n\r\n`node_modules/.bin/wdio --user $SAUCE_USERNAME --key $SAUCE_ACCESS_KEY wdio.conf.js`, where `$SAUCE_USERNAME` and `$SAUCE_ACCESS_KEY` are set to my SauceLabs credentials.  \r\n\r\nThe launcher succeeds in starting a sauce connect tunnel, but the tests do not run in SauceLabs.\r\n\r\n"}}