{"action":"created","comment":{"url":"https://api.github.com/repos/cyaninc/beaker/pulls/comments/30272407","id":30272407,"diff_hunk":"@@ -0,0 +1,192 @@\n+/**\n+ * @author Adam Meadows [@job13er](https://github.com/job13er)\n+ * @copyright 2015 Cyan, Inc. All rights reserved\n+ */\n+\n+'use strict';\n+\n+/**\n+ * @typedef Result\n+ * @property {Number} code - the exit code of the command\n+ * @property {String} stdout - the standard output from command\n+ */\n+\n+var _ = require('lodash');\n+var path = require('path');\n+var sh = require('execSync');","path":"src/webdriverio-tester.js","position":16,"original_position":16,"commit_id":"68e771915aa1e9a139f0eecd1ec08af74fd7a183","original_commit_id":"68e771915aa1e9a139f0eecd1ec08af74fd7a183","user":{"login":"job13er","id":411788,"avatar_url":"https://avatars.githubusercontent.com/u/411788?v=3","gravatar_id":"","url":"https://api.github.com/users/job13er","html_url":"https://github.com/job13er","followers_url":"https://api.github.com/users/job13er/followers","following_url":"https://api.github.com/users/job13er/following{/other_user}","gists_url":"https://api.github.com/users/job13er/gists{/gist_id}","starred_url":"https://api.github.com/users/job13er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/job13er/subscriptions","organizations_url":"https://api.github.com/users/job13er/orgs","repos_url":"https://api.github.com/users/job13er/repos","events_url":"https://api.github.com/users/job13er/events{/privacy}","received_events_url":"https://api.github.com/users/job13er/received_events","type":"User","site_admin":false},"body":"I would prefer to use builtin async methods as well. Actually, I'd rather use the `http` module in `node` vs. using `exec` at all. Then we don't need `curl` to be installed. However, with any async, I don't know how to tell the command line utility to not exit until receiving a response (or timing out). \r\n\r\nDo you have any ideas for how to handle exit codes when using async?","created_at":"2015-05-13T20:28:57Z","updated_at":"2015-05-13T20:28:57Z","html_url":"https://github.com/cyaninc/beaker/pull/41#discussion_r30272407","pull_request_url":"https://api.github.com/repos/cyaninc/beaker/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/cyaninc/beaker/pulls/comments/30272407"},"html":{"href":"https://github.com/cyaninc/beaker/pull/41#discussion_r30272407"},"pull_request":{"href":"https://api.github.com/repos/cyaninc/beaker/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/cyaninc/beaker/pulls/41","id":35259844,"html_url":"https://github.com/cyaninc/beaker/pull/41","diff_url":"https://github.com/cyaninc/beaker/pull/41.diff","patch_url":"https://github.com/cyaninc/beaker/pull/41.patch","issue_url":"https://api.github.com/repos/cyaninc/beaker/issues/41","number":41,"state":"closed","locked":false,"title":"Integrating webdriverio-server","user":{"login":"job13er","id":411788,"avatar_url":"https://avatars.githubusercontent.com/u/411788?v=3","gravatar_id":"","url":"https://api.github.com/users/job13er","html_url":"https://github.com/job13er","followers_url":"https://api.github.com/users/job13er/followers","following_url":"https://api.github.com/users/job13er/following{/other_user}","gists_url":"https://api.github.com/users/job13er/gists{/gist_id}","starred_url":"https://api.github.com/users/job13er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/job13er/subscriptions","organizations_url":"https://api.github.com/users/job13er/orgs","repos_url":"https://api.github.com/users/job13er/repos","events_url":"https://api.github.com/users/job13er/events{/privacy}","received_events_url":"https://api.github.com/users/job13er/received_events","type":"User","site_admin":false},"body":"This change adds new make targets and a new command line utility for\r\nworking with a remote `webdriverio-server` to do e2e testing.\r\n\r\nThe new make targets are `remote-e2e-test` which is dependent on a `build-mock`\r\nand `do-remote-e2e-test` which will bypass the `build-mock` if you know you didn't\r\nchange anything but the spec files.\r\n\r\nThis release also delivers alternative ways to refernce `beaker` when requiring it.\r\n\r\nFor example, in the `Gruntfile.js` you can now do:\r\n\r\n```js\r\nvar beaker = require('beaker');\r\n\r\nmodule.exports = function (grunt) {\r\n    beaker.pour(grunt);\r\n};\r\n\r\n```\r\n\r\nIn a karma-jasmine spec, you can now do:\r\n\r\n```js\r\nvar beaker = require('beaker').jasmine;\r\nvar wait = beaker.wait;\r\nvar waitForPromise = beaker.waitForPromise;\r\n```\r\n\r\nIn an e2e spec, you can now do:\r\n\r\n```js\r\nvar webdriverio = require('webdriverio');\r\nvar webdrivercss = require('webdrivercss');\r\nvar beaker = require('beaker').e2e;\r\nvar testConfig = require('./test-config.json');\r\nvar url = beaker.getUrl(testConfig);\r\n\r\ndescribe('e2d testing using ' + url, function () {\r\n    var client;\r\n    beforeEach(function () {\r\n        client = beaker.init(webdriver, webdrivercss, testConfig);\r\n    });\r\n});\r\n```","created_at":"2015-05-12T19:09:01Z","updated_at":"2015-05-13T20:28:57Z","closed_at":"2015-05-13T15:16:48Z","merged_at":"2015-05-13T15:16:48Z","merge_commit_sha":"c3d9161a19b5efc5eb2936116f47ba5c921002d0","assignee":{"login":"psbanka","id":1179791,"avatar_url":"https://avatars.githubusercontent.com/u/1179791?v=3","gravatar_id":"","url":"https://api.github.com/users/psbanka","html_url":"https://github.com/psbanka","followers_url":"https://api.github.com/users/psbanka/followers","following_url":"https://api.github.com/users/psbanka/following{/other_user}","gists_url":"https://api.github.com/users/psbanka/gists{/gist_id}","starred_url":"https://api.github.com/users/psbanka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psbanka/subscriptions","organizations_url":"https://api.github.com/users/psbanka/orgs","repos_url":"https://api.github.com/users/psbanka/repos","events_url":"https://api.github.com/users/psbanka/events{/privacy}","received_events_url":"https://api.github.com/users/psbanka/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cyaninc/beaker/pulls/41/commits","review_comments_url":"https://api.github.com/repos/cyaninc/beaker/pulls/41/comments","review_comment_url":"https://api.github.com/repos/cyaninc/beaker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyaninc/beaker/issues/41/comments","statuses_url":"https://api.github.com/repos/cyaninc/beaker/statuses/68e771915aa1e9a139f0eecd1ec08af74fd7a183","head":{"label":"job13er:add-webdriverio-server-support","ref":"add-webdriverio-server-support","sha":"68e771915aa1e9a139f0eecd1ec08af74fd7a183","user":{"login":"job13er","id":411788,"avatar_url":"https://avatars.githubusercontent.com/u/411788?v=3","gravatar_id":"","url":"https://api.github.com/users/job13er","html_url":"https://github.com/job13er","followers_url":"https://api.github.com/users/job13er/followers","following_url":"https://api.github.com/users/job13er/following{/other_user}","gists_url":"https://api.github.com/users/job13er/gists{/gist_id}","starred_url":"https://api.github.com/users/job13er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/job13er/subscriptions","organizations_url":"https://api.github.com/users/job13er/orgs","repos_url":"https://api.github.com/users/job13er/repos","events_url":"https://api.github.com/users/job13er/events{/privacy}","received_events_url":"https://api.github.com/users/job13er/received_events","type":"User","site_admin":false},"repo":{"id":32796271,"name":"beaker","full_name":"job13er/beaker","owner":{"login":"job13er","id":411788,"avatar_url":"https://avatars.githubusercontent.com/u/411788?v=3","gravatar_id":"","url":"https://api.github.com/users/job13er","html_url":"https://github.com/job13er","followers_url":"https://api.github.com/users/job13er/followers","following_url":"https://api.github.com/users/job13er/following{/other_user}","gists_url":"https://api.github.com/users/job13er/gists{/gist_id}","starred_url":"https://api.github.com/users/job13er/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/job13er/subscriptions","organizations_url":"https://api.github.com/users/job13er/orgs","repos_url":"https://api.github.com/users/job13er/repos","events_url":"https://api.github.com/users/job13er/events{/privacy}","received_events_url":"https://api.github.com/users/job13er/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/job13er/beaker","description":"Toolkit for building web interfaces","fork":true,"url":"https://api.github.com/repos/job13er/beaker","forks_url":"https://api.github.com/repos/job13er/beaker/forks","keys_url":"https://api.github.com/repos/job13er/beaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/job13er/beaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/job13er/beaker/teams","hooks_url":"https://api.github.com/repos/job13er/beaker/hooks","issue_events_url":"https://api.github.com/repos/job13er/beaker/issues/events{/number}","events_url":"https://api.github.com/repos/job13er/beaker/events","assignees_url":"https://api.github.com/repos/job13er/beaker/assignees{/user}","branches_url":"https://api.github.com/repos/job13er/beaker/branches{/branch}","tags_url":"https://api.github.com/repos/job13er/beaker/tags","blobs_url":"https://api.github.com/repos/job13er/beaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/job13er/beaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/job13er/beaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/job13er/beaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/job13er/beaker/statuses/{sha}","languages_url":"https://api.github.com/repos/job13er/beaker/languages","stargazers_url":"https://api.github.com/repos/job13er/beaker/stargazers","contributors_url":"https://api.github.com/repos/job13er/beaker/contributors","subscribers_url":"https://api.github.com/repos/job13er/beaker/subscribers","subscription_url":"https://api.github.com/repos/job13er/beaker/subscription","commits_url":"https://api.github.com/repos/job13er/beaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/job13er/beaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/job13er/beaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/job13er/beaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/job13er/beaker/contents/{+path}","compare_url":"https://api.github.com/repos/job13er/beaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/job13er/beaker/merges","archive_url":"https://api.github.com/repos/job13er/beaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/job13er/beaker/downloads","issues_url":"https://api.github.com/repos/job13er/beaker/issues{/number}","pulls_url":"https://api.github.com/repos/job13er/beaker/pulls{/number}","milestones_url":"https://api.github.com/repos/job13er/beaker/milestones{/number}","notifications_url":"https://api.github.com/repos/job13er/beaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/job13er/beaker/labels{/name}","releases_url":"https://api.github.com/repos/job13er/beaker/releases{/id}","created_at":"2015-03-24T12:11:31Z","updated_at":"2015-04-20T17:31:51Z","pushed_at":"2015-05-13T15:17:42Z","git_url":"git://github.com/job13er/beaker.git","ssh_url":"git@github.com:job13er/beaker.git","clone_url":"https://github.com/job13er/beaker.git","svn_url":"https://github.com/job13er/beaker","homepage":null,"size":335,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cyaninc:master","ref":"master","sha":"9ce86c313ad4b8d33052af54b282a321c80a7ec2","user":{"login":"cyaninc","id":4604820,"avatar_url":"https://avatars.githubusercontent.com/u/4604820?v=3","gravatar_id":"","url":"https://api.github.com/users/cyaninc","html_url":"https://github.com/cyaninc","followers_url":"https://api.github.com/users/cyaninc/followers","following_url":"https://api.github.com/users/cyaninc/following{/other_user}","gists_url":"https://api.github.com/users/cyaninc/gists{/gist_id}","starred_url":"https://api.github.com/users/cyaninc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyaninc/subscriptions","organizations_url":"https://api.github.com/users/cyaninc/orgs","repos_url":"https://api.github.com/users/cyaninc/repos","events_url":"https://api.github.com/users/cyaninc/events{/privacy}","received_events_url":"https://api.github.com/users/cyaninc/received_events","type":"Organization","site_admin":false},"repo":{"id":32793909,"name":"beaker","full_name":"cyaninc/beaker","owner":{"login":"cyaninc","id":4604820,"avatar_url":"https://avatars.githubusercontent.com/u/4604820?v=3","gravatar_id":"","url":"https://api.github.com/users/cyaninc","html_url":"https://github.com/cyaninc","followers_url":"https://api.github.com/users/cyaninc/followers","following_url":"https://api.github.com/users/cyaninc/following{/other_user}","gists_url":"https://api.github.com/users/cyaninc/gists{/gist_id}","starred_url":"https://api.github.com/users/cyaninc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyaninc/subscriptions","organizations_url":"https://api.github.com/users/cyaninc/orgs","repos_url":"https://api.github.com/users/cyaninc/repos","events_url":"https://api.github.com/users/cyaninc/events{/privacy}","received_events_url":"https://api.github.com/users/cyaninc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyaninc/beaker","description":"Toolkit for building web interfaces","fork":false,"url":"https://api.github.com/repos/cyaninc/beaker","forks_url":"https://api.github.com/repos/cyaninc/beaker/forks","keys_url":"https://api.github.com/repos/cyaninc/beaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyaninc/beaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyaninc/beaker/teams","hooks_url":"https://api.github.com/repos/cyaninc/beaker/hooks","issue_events_url":"https://api.github.com/repos/cyaninc/beaker/issues/events{/number}","events_url":"https://api.github.com/repos/cyaninc/beaker/events","assignees_url":"https://api.github.com/repos/cyaninc/beaker/assignees{/user}","branches_url":"https://api.github.com/repos/cyaninc/beaker/branches{/branch}","tags_url":"https://api.github.com/repos/cyaninc/beaker/tags","blobs_url":"https://api.github.com/repos/cyaninc/beaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyaninc/beaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyaninc/beaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyaninc/beaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyaninc/beaker/statuses/{sha}","languages_url":"https://api.github.com/repos/cyaninc/beaker/languages","stargazers_url":"https://api.github.com/repos/cyaninc/beaker/stargazers","contributors_url":"https://api.github.com/repos/cyaninc/beaker/contributors","subscribers_url":"https://api.github.com/repos/cyaninc/beaker/subscribers","subscription_url":"https://api.github.com/repos/cyaninc/beaker/subscription","commits_url":"https://api.github.com/repos/cyaninc/beaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyaninc/beaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyaninc/beaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyaninc/beaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyaninc/beaker/contents/{+path}","compare_url":"https://api.github.com/repos/cyaninc/beaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyaninc/beaker/merges","archive_url":"https://api.github.com/repos/cyaninc/beaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyaninc/beaker/downloads","issues_url":"https://api.github.com/repos/cyaninc/beaker/issues{/number}","pulls_url":"https://api.github.com/repos/cyaninc/beaker/pulls{/number}","milestones_url":"https://api.github.com/repos/cyaninc/beaker/milestones{/number}","notifications_url":"https://api.github.com/repos/cyaninc/beaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyaninc/beaker/labels{/name}","releases_url":"https://api.github.com/repos/cyaninc/beaker/releases{/id}","created_at":"2015-03-24T11:16:22Z","updated_at":"2015-05-08T20:41:29Z","pushed_at":"2015-05-13T15:17:42Z","git_url":"git://github.com/cyaninc/beaker.git","ssh_url":"git@github.com:cyaninc/beaker.git","clone_url":"https://github.com/cyaninc/beaker.git","svn_url":"https://github.com/cyaninc/beaker","homepage":null,"size":584,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cyaninc/beaker/pulls/41"},"html":{"href":"https://github.com/cyaninc/beaker/pull/41"},"issue":{"href":"https://api.github.com/repos/cyaninc/beaker/issues/41"},"comments":{"href":"https://api.github.com/repos/cyaninc/beaker/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/cyaninc/beaker/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/cyaninc/beaker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyaninc/beaker/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/cyaninc/beaker/statuses/68e771915aa1e9a139f0eecd1ec08af74fd7a183"}}}}