{"action":"created","comment":{"url":"https://api.github.com/repos/choheekim/ember-exam/pulls/comments/216429138","pull_request_review_id":153907725,"id":216429138,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjQyOTEzOA==","diff_hunk":"@@ -332,6 +334,44 @@ module.exports = TestCommand.extend({\n     }\n   },\n \n+  /**\n+   * Adds an object which maps a list of module from browser id to config\n+   * \n+   * @param {object} commandOptions\n+   * @param {object} config\n+   */\n+  _addBrowserModuleMappingToConfig: function(commandOptions) {\n+    const filePath = commandOptions.replayExecution;\n+    const replayBrowser = commandOptions.replayBrowser;\n+\n+    let testMappingObj = {}\n+\n+    try {\n+      // Read the replay execution json file.\n+      const testMappingRawData = fs.readFileSync(filePath);\n+      testMappingObj = JSON.parse(testMappingRawData);\n+    } catch (err) { \n+      throw new Error(err);\n+    }\n+\n+    const browserModuleMapping = ((replayBrowser, testMappingObj) => {\n+      const browserModuleMappingObj = {};\n+      for (const idx in replayBrowser) {\n+        const browserId = replayBrowser[idx];\n+        const listOfModule = testMappingObj[browserId];\n+\n+        if(!listOfModule) {\n+          throw Error ('browser id doesn\\t exist in the file.');","path":"lib/commands/exam.js","position":40,"original_position":40,"commit_id":"d68fa76b60de250ea44fab79db51532aadc0bad1","original_commit_id":"d68fa76b60de250ea44fab79db51532aadc0bad1","user":{"login":"dcombslinkedin","id":34755123,"node_id":"MDQ6VXNlcjM0NzU1MTIz","avatar_url":"https://avatars3.githubusercontent.com/u/34755123?v=4","gravatar_id":"","url":"https://api.github.com/users/dcombslinkedin","html_url":"https://github.com/dcombslinkedin","followers_url":"https://api.github.com/users/dcombslinkedin/followers","following_url":"https://api.github.com/users/dcombslinkedin/following{/other_user}","gists_url":"https://api.github.com/users/dcombslinkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/dcombslinkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcombslinkedin/subscriptions","organizations_url":"https://api.github.com/users/dcombslinkedin/orgs","repos_url":"https://api.github.com/users/dcombslinkedin/repos","events_url":"https://api.github.com/users/dcombslinkedin/events{/privacy}","received_events_url":"https://api.github.com/users/dcombslinkedin/received_events","type":"User","site_admin":false},"body":"ID, not id. Also, the error message needs to be more clear about what it means, like 'the file' should really say which file it's talking about, and 'browser id', should be replaced with something saying what the ID is you're looking for (presumably it was specified by the caller?)","created_at":"2018-09-10T18:35:46Z","updated_at":"2018-09-10T18:35:46Z","html_url":"https://github.com/choheekim/ember-exam/pull/6#discussion_r216429138","pull_request_url":"https://api.github.com/repos/choheekim/ember-exam/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/choheekim/ember-exam/pulls/comments/216429138"},"html":{"href":"https://github.com/choheekim/ember-exam/pull/6#discussion_r216429138"},"pull_request":{"href":"https://api.github.com/repos/choheekim/ember-exam/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/choheekim/ember-exam/pulls/6","id":214068317,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDY4MzE3","html_url":"https://github.com/choheekim/ember-exam/pull/6","diff_url":"https://github.com/choheekim/ember-exam/pull/6.diff","patch_url":"https://github.com/choheekim/ember-exam/pull/6.patch","issue_url":"https://api.github.com/repos/choheekim/ember-exam/issues/6","number":6,"state":"open","locked":false,"title":"when it's test failure reproduction run read a specified json file and rerun a list of module for specified browser.","user":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-08T00:57:39Z","updated_at":"2018-09-10T18:35:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f195c96929a94e90d2998ba1917656e909bdfbe8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/choheekim/ember-exam/pulls/6/commits","review_comments_url":"https://api.github.com/repos/choheekim/ember-exam/pulls/6/comments","review_comment_url":"https://api.github.com/repos/choheekim/ember-exam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/choheekim/ember-exam/issues/6/comments","statuses_url":"https://api.github.com/repos/choheekim/ember-exam/statuses/d68fa76b60de250ea44fab79db51532aadc0bad1","head":{"label":"choheekim:read_json_file","ref":"read_json_file","sha":"d68fa76b60de250ea44fab79db51532aadc0bad1","user":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"repo":{"id":143462705,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM0NjI3MDU=","name":"ember-exam","full_name":"choheekim/ember-exam","owner":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/choheekim/ember-exam","description":"Run your tests with randomization, splitting, and parallelization for beautiful tests.","fork":true,"url":"https://api.github.com/repos/choheekim/ember-exam","forks_url":"https://api.github.com/repos/choheekim/ember-exam/forks","keys_url":"https://api.github.com/repos/choheekim/ember-exam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choheekim/ember-exam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choheekim/ember-exam/teams","hooks_url":"https://api.github.com/repos/choheekim/ember-exam/hooks","issue_events_url":"https://api.github.com/repos/choheekim/ember-exam/issues/events{/number}","events_url":"https://api.github.com/repos/choheekim/ember-exam/events","assignees_url":"https://api.github.com/repos/choheekim/ember-exam/assignees{/user}","branches_url":"https://api.github.com/repos/choheekim/ember-exam/branches{/branch}","tags_url":"https://api.github.com/repos/choheekim/ember-exam/tags","blobs_url":"https://api.github.com/repos/choheekim/ember-exam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choheekim/ember-exam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choheekim/ember-exam/git/refs{/sha}","trees_url":"https://api.github.com/repos/choheekim/ember-exam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choheekim/ember-exam/statuses/{sha}","languages_url":"https://api.github.com/repos/choheekim/ember-exam/languages","stargazers_url":"https://api.github.com/repos/choheekim/ember-exam/stargazers","contributors_url":"https://api.github.com/repos/choheekim/ember-exam/contributors","subscribers_url":"https://api.github.com/repos/choheekim/ember-exam/subscribers","subscription_url":"https://api.github.com/repos/choheekim/ember-exam/subscription","commits_url":"https://api.github.com/repos/choheekim/ember-exam/commits{/sha}","git_commits_url":"https://api.github.com/repos/choheekim/ember-exam/git/commits{/sha}","comments_url":"https://api.github.com/repos/choheekim/ember-exam/comments{/number}","issue_comment_url":"https://api.github.com/repos/choheekim/ember-exam/issues/comments{/number}","contents_url":"https://api.github.com/repos/choheekim/ember-exam/contents/{+path}","compare_url":"https://api.github.com/repos/choheekim/ember-exam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choheekim/ember-exam/merges","archive_url":"https://api.github.com/repos/choheekim/ember-exam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choheekim/ember-exam/downloads","issues_url":"https://api.github.com/repos/choheekim/ember-exam/issues{/number}","pulls_url":"https://api.github.com/repos/choheekim/ember-exam/pulls{/number}","milestones_url":"https://api.github.com/repos/choheekim/ember-exam/milestones{/number}","notifications_url":"https://api.github.com/repos/choheekim/ember-exam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choheekim/ember-exam/labels{/name}","releases_url":"https://api.github.com/repos/choheekim/ember-exam/releases{/id}","deployments_url":"https://api.github.com/repos/choheekim/ember-exam/deployments","created_at":"2018-08-03T18:53:11Z","updated_at":"2018-08-03T18:53:13Z","pushed_at":"2018-09-08T00:57:39Z","git_url":"git://github.com/choheekim/ember-exam.git","ssh_url":"git@github.com:choheekim/ember-exam.git","clone_url":"https://github.com/choheekim/ember-exam.git","svn_url":"https://github.com/choheekim/ember-exam","homepage":"","size":222,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"choheekim:create_json_file","ref":"create_json_file","sha":"8c27fef3807842742f40636878113d52bc3102a4","user":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"repo":{"id":143462705,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM0NjI3MDU=","name":"ember-exam","full_name":"choheekim/ember-exam","owner":{"login":"choheekim","id":11324746,"node_id":"MDQ6VXNlcjExMzI0NzQ2","avatar_url":"https://avatars0.githubusercontent.com/u/11324746?v=4","gravatar_id":"","url":"https://api.github.com/users/choheekim","html_url":"https://github.com/choheekim","followers_url":"https://api.github.com/users/choheekim/followers","following_url":"https://api.github.com/users/choheekim/following{/other_user}","gists_url":"https://api.github.com/users/choheekim/gists{/gist_id}","starred_url":"https://api.github.com/users/choheekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choheekim/subscriptions","organizations_url":"https://api.github.com/users/choheekim/orgs","repos_url":"https://api.github.com/users/choheekim/repos","events_url":"https://api.github.com/users/choheekim/events{/privacy}","received_events_url":"https://api.github.com/users/choheekim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/choheekim/ember-exam","description":"Run your tests with randomization, splitting, and parallelization for beautiful tests.","fork":true,"url":"https://api.github.com/repos/choheekim/ember-exam","forks_url":"https://api.github.com/repos/choheekim/ember-exam/forks","keys_url":"https://api.github.com/repos/choheekim/ember-exam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/choheekim/ember-exam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/choheekim/ember-exam/teams","hooks_url":"https://api.github.com/repos/choheekim/ember-exam/hooks","issue_events_url":"https://api.github.com/repos/choheekim/ember-exam/issues/events{/number}","events_url":"https://api.github.com/repos/choheekim/ember-exam/events","assignees_url":"https://api.github.com/repos/choheekim/ember-exam/assignees{/user}","branches_url":"https://api.github.com/repos/choheekim/ember-exam/branches{/branch}","tags_url":"https://api.github.com/repos/choheekim/ember-exam/tags","blobs_url":"https://api.github.com/repos/choheekim/ember-exam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/choheekim/ember-exam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/choheekim/ember-exam/git/refs{/sha}","trees_url":"https://api.github.com/repos/choheekim/ember-exam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/choheekim/ember-exam/statuses/{sha}","languages_url":"https://api.github.com/repos/choheekim/ember-exam/languages","stargazers_url":"https://api.github.com/repos/choheekim/ember-exam/stargazers","contributors_url":"https://api.github.com/repos/choheekim/ember-exam/contributors","subscribers_url":"https://api.github.com/repos/choheekim/ember-exam/subscribers","subscription_url":"https://api.github.com/repos/choheekim/ember-exam/subscription","commits_url":"https://api.github.com/repos/choheekim/ember-exam/commits{/sha}","git_commits_url":"https://api.github.com/repos/choheekim/ember-exam/git/commits{/sha}","comments_url":"https://api.github.com/repos/choheekim/ember-exam/comments{/number}","issue_comment_url":"https://api.github.com/repos/choheekim/ember-exam/issues/comments{/number}","contents_url":"https://api.github.com/repos/choheekim/ember-exam/contents/{+path}","compare_url":"https://api.github.com/repos/choheekim/ember-exam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/choheekim/ember-exam/merges","archive_url":"https://api.github.com/repos/choheekim/ember-exam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/choheekim/ember-exam/downloads","issues_url":"https://api.github.com/repos/choheekim/ember-exam/issues{/number}","pulls_url":"https://api.github.com/repos/choheekim/ember-exam/pulls{/number}","milestones_url":"https://api.github.com/repos/choheekim/ember-exam/milestones{/number}","notifications_url":"https://api.github.com/repos/choheekim/ember-exam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/choheekim/ember-exam/labels{/name}","releases_url":"https://api.github.com/repos/choheekim/ember-exam/releases{/id}","deployments_url":"https://api.github.com/repos/choheekim/ember-exam/deployments","created_at":"2018-08-03T18:53:11Z","updated_at":"2018-08-03T18:53:13Z","pushed_at":"2018-09-08T00:57:39Z","git_url":"git://github.com/choheekim/ember-exam.git","ssh_url":"git@github.com:choheekim/ember-exam.git","clone_url":"https://github.com/choheekim/ember-exam.git","svn_url":"https://github.com/choheekim/ember-exam","homepage":"","size":222,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/choheekim/ember-exam/pulls/6"},"html":{"href":"https://github.com/choheekim/ember-exam/pull/6"},"issue":{"href":"https://api.github.com/repos/choheekim/ember-exam/issues/6"},"comments":{"href":"https://api.github.com/repos/choheekim/ember-exam/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/choheekim/ember-exam/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/choheekim/ember-exam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/choheekim/ember-exam/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/choheekim/ember-exam/statuses/d68fa76b60de250ea44fab79db51532aadc0bad1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"dcombslinkedin"}}