{"action":"created","issue":{"url":"https://api.github.com/repos/substack/tape/issues/148","repository_url":"https://api.github.com/repos/substack/tape","labels_url":"https://api.github.com/repos/substack/tape/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/substack/tape/issues/148/comments","events_url":"https://api.github.com/repos/substack/tape/issues/148/events","html_url":"https://github.com/substack/tape/issues/148","id":59864143,"number":148,"title":"What's the best way to report pass / fail to sauce labs?","user":{"login":"ericelliott","id":364727,"avatar_url":"https://avatars.githubusercontent.com/u/364727?v=3","gravatar_id":"","url":"https://api.github.com/users/ericelliott","html_url":"https://github.com/ericelliott","followers_url":"https://api.github.com/users/ericelliott/followers","following_url":"https://api.github.com/users/ericelliott/following{/other_user}","gists_url":"https://api.github.com/users/ericelliott/gists{/gist_id}","starred_url":"https://api.github.com/users/ericelliott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericelliott/subscriptions","organizations_url":"https://api.github.com/users/ericelliott/orgs","repos_url":"https://api.github.com/users/ericelliott/repos","events_url":"https://api.github.com/users/ericelliott/events{/privacy}","received_events_url":"https://api.github.com/users/ericelliott/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-04T21:22:25Z","updated_at":"2016-06-13T22:51:21Z","closed_at":"2015-08-11T17:55:51Z","body":"Orchestrating sauce labs runs with `selenium-sauce`, what's the best way to report pass / fail to Sauce Labs?\r\n\r\n```\r\nvar\r\n  test = require('tape'),\r\n  SeSauce = require('selenium-sauce');\r\n\r\n// Loads the config file and invokes the callback once for each browser\r\nnew SeSauce(\r\n    {   // Configuration options\r\n        quiet: false,           // Silences the console output\r\n        webdriver: {            // Options for Selenium WebDriver (WebdriverIO)\r\n            user: process.env.SAUCE_USERNAME,\r\n            key: process.env.SAUCE_ACCESS_KEY,\r\n            desiredCapabilities: [{\r\n                browserName: 'chrome',\r\n                version: '27',\r\n                platform: 'XP',\r\n                tags: ['examples'],\r\n                name: 'This is an example test'\r\n            }]\r\n        },\r\n        httpServer: {           // Options for local http server (npmjs.org/package/http-server)\r\n            port: 8080              // Non-standard option; it is passed into the httpServer.listen() method\r\n        },\r\n        sauceLabs: {            // Options for SauceLabs API wrapper (npmjs.org/package/saucelabs)\r\n            username: process.env.SAUCE_USERNAME,\r\n            password: process.env.SAUCE_ACCESS_KEY\r\n        },\r\n        sauceConnect: {         // Options for SauceLabs Connect (npmjs.org/package/sauce-connect-launcher)\r\n            username: process.env.SAUCE_USERNAME,\r\n            accessKey: process.env.SAUCE_ACCESS_KEY\r\n        },\r\n        selenium: {             // Options for Selenium Standalone Server (npmjs.org/package/selenium-standalone). Only used if you need Selenium running locally.\r\n            args: []                // options to pass to `java -jar selenium-server-standalone-X.XX.X.jar`\r\n        }\r\n    },\r\n    function(browser) {\r\n\r\n        // Initialize the browser\r\n        browser.init(function(err) {\r\n            if(err) throw err;\r\n\r\n            // Load a url into the browser\r\n            browser.url('http://localhost:8080/test.html', function() {\r\n                var result;\r\n                // Tell SauceLabs that the test was successful\r\n                result = // what do we put here?\r\n                browser.passed(result, myCompletionCallback);\r\n            });\r\n        });\r\n    }\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/substack/tape/issues/comments/225732173","html_url":"https://github.com/substack/tape/issues/148#issuecomment-225732173","issue_url":"https://api.github.com/repos/substack/tape/issues/148","id":225732173,"user":{"login":"andyhu","id":203980,"avatar_url":"https://avatars.githubusercontent.com/u/203980?v=3","gravatar_id":"","url":"https://api.github.com/users/andyhu","html_url":"https://github.com/andyhu","followers_url":"https://api.github.com/users/andyhu/followers","following_url":"https://api.github.com/users/andyhu/following{/other_user}","gists_url":"https://api.github.com/users/andyhu/gists{/gist_id}","starred_url":"https://api.github.com/users/andyhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyhu/subscriptions","organizations_url":"https://api.github.com/users/andyhu/orgs","repos_url":"https://api.github.com/users/andyhu/repos","events_url":"https://api.github.com/users/andyhu/events{/privacy}","received_events_url":"https://api.github.com/users/andyhu/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T22:51:21Z","updated_at":"2016-06-13T22:51:21Z","body":"@ericelliott Never tried with that, but `karma` + `karma-saucelabs-lancher` + `karma-tap` should make it. I've seen a few projects using the combinations"}}
{"actor":{"display_login":"andyhu"}}