{"action":"created","comment":{"url":"https://api.github.com/repos/postmanlabs/newman/pulls/comments/83002839","pull_request_review_id":3871048,"id":83002839,"diff_hunk":"@@ -0,0 +1,44 @@\n+var join = require('path').join, // ensures that the path is consistent, regardless of where the script is run from\n+\n+    async = require('async'), // https://npmjs.org/pacakge/async\n+    newman = require('../'), // change to require('newman'), if using outside this repository\n+\n+    /**\n+     * A set of collection run options for the paralle collection runs. For demonstrative purposes in this script, an\n+     * identical set of options has been used. However, different options can be used, so as to actually run different\n+     * collections, with their corresponding run options in parallel.\n+     *\n+     * @type {Object}\n+     */\n+    options = {\n+        collection: join(__dirname, 'sample-collection.json')\n+    },\n+\n+    /**\n+     * A collection runner function that runs a collection for a pre-determined options object.\n+     *\n+     * @param {Function} done - A callback function that marks the end of the current collection run, when called.\n+     */\n+    parallelCollectionRun = function (done) {\n+        newman.run(options, done);\n+    };\n+\n+// Runs the Postman sample collection thrice, in parallel.\n+async.parallel([\n+    parallelCollectionRun,\n+    parallelCollectionRun,\n+    parallelCollectionRun\n+],\n+\n+    /**\n+     * The\n+     *\n+     * @param {?Error} err - An Error instance / null that determines whether or not the parallel collection run\n+     * succeeded.\n+     * @param {Array} result - An array of collection run summary objects.\n+     */\n+    function (err, result) {\n+        err && console.error(err);\n+\n+        console.info(JSON.stringify(result, null, 2)); // beautify the displayed run result","path":"examples/parallel-collection-runs.js","position":43,"original_position":43,"commit_id":"d49fdb06907616e6c912c7dc19591c42b8b6edf9","original_commit_id":"d49fdb06907616e6c912c7dc19591c42b8b6edf9","user":{"login":"shamasis","id":232373,"avatar_url":"https://avatars.githubusercontent.com/u/232373?v=3","gravatar_id":"","url":"https://api.github.com/users/shamasis","html_url":"https://github.com/shamasis","followers_url":"https://api.github.com/users/shamasis/followers","following_url":"https://api.github.com/users/shamasis/following{/other_user}","gists_url":"https://api.github.com/users/shamasis/gists{/gist_id}","starred_url":"https://api.github.com/users/shamasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamasis/subscriptions","organizations_url":"https://api.github.com/users/shamasis/orgs","repos_url":"https://api.github.com/users/shamasis/repos","events_url":"https://api.github.com/users/shamasis/events{/privacy}","received_events_url":"https://api.github.com/users/shamasis/received_events","type":"User","site_admin":false},"body":"overwhelming output.","created_at":"2016-10-12T13:22:24Z","updated_at":"2016-10-12T13:22:24Z","html_url":"https://github.com/postmanlabs/newman/pull/691#discussion_r83002839","pull_request_url":"https://api.github.com/repos/postmanlabs/newman/pulls/691","_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/comments/83002839"},"html":{"href":"https://github.com/postmanlabs/newman/pull/691#discussion_r83002839"},"pull_request":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/691"}}},"pull_request":{"url":"https://api.github.com/repos/postmanlabs/newman/pulls/691","id":89007477,"html_url":"https://github.com/postmanlabs/newman/pull/691","diff_url":"https://github.com/postmanlabs/newman/pull/691.diff","patch_url":"https://github.com/postmanlabs/newman/pull/691.patch","issue_url":"https://api.github.com/repos/postmanlabs/newman/issues/691","number":691,"state":"open","locked":false,"title":"Added parallel collection run example","user":{"login":"kunagpal","id":7289840,"avatar_url":"https://avatars.githubusercontent.com/u/7289840?v=3","gravatar_id":"","url":"https://api.github.com/users/kunagpal","html_url":"https://github.com/kunagpal","followers_url":"https://api.github.com/users/kunagpal/followers","following_url":"https://api.github.com/users/kunagpal/following{/other_user}","gists_url":"https://api.github.com/users/kunagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/kunagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunagpal/subscriptions","organizations_url":"https://api.github.com/users/kunagpal/orgs","repos_url":"https://api.github.com/users/kunagpal/repos","events_url":"https://api.github.com/users/kunagpal/events{/privacy}","received_events_url":"https://api.github.com/users/kunagpal/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T12:35:14Z","updated_at":"2016-10-12T13:22:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24a7f08df29282f1daa27dfdd3bfd10f2d9620f0","assignee":{"login":"shamasis","id":232373,"avatar_url":"https://avatars.githubusercontent.com/u/232373?v=3","gravatar_id":"","url":"https://api.github.com/users/shamasis","html_url":"https://github.com/shamasis","followers_url":"https://api.github.com/users/shamasis/followers","following_url":"https://api.github.com/users/shamasis/following{/other_user}","gists_url":"https://api.github.com/users/shamasis/gists{/gist_id}","starred_url":"https://api.github.com/users/shamasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamasis/subscriptions","organizations_url":"https://api.github.com/users/shamasis/orgs","repos_url":"https://api.github.com/users/shamasis/repos","events_url":"https://api.github.com/users/shamasis/events{/privacy}","received_events_url":"https://api.github.com/users/shamasis/received_events","type":"User","site_admin":false},"assignees":[{"login":"shamasis","id":232373,"avatar_url":"https://avatars.githubusercontent.com/u/232373?v=3","gravatar_id":"","url":"https://api.github.com/users/shamasis","html_url":"https://github.com/shamasis","followers_url":"https://api.github.com/users/shamasis/followers","following_url":"https://api.github.com/users/shamasis/following{/other_user}","gists_url":"https://api.github.com/users/shamasis/gists{/gist_id}","starred_url":"https://api.github.com/users/shamasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamasis/subscriptions","organizations_url":"https://api.github.com/users/shamasis/orgs","repos_url":"https://api.github.com/users/shamasis/repos","events_url":"https://api.github.com/users/shamasis/events{/privacy}","received_events_url":"https://api.github.com/users/shamasis/received_events","type":"User","site_admin":false},{"login":"czardoz","id":3726484,"avatar_url":"https://avatars.githubusercontent.com/u/3726484?v=3","gravatar_id":"","url":"https://api.github.com/users/czardoz","html_url":"https://github.com/czardoz","followers_url":"https://api.github.com/users/czardoz/followers","following_url":"https://api.github.com/users/czardoz/following{/other_user}","gists_url":"https://api.github.com/users/czardoz/gists{/gist_id}","starred_url":"https://api.github.com/users/czardoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czardoz/subscriptions","organizations_url":"https://api.github.com/users/czardoz/orgs","repos_url":"https://api.github.com/users/czardoz/repos","events_url":"https://api.github.com/users/czardoz/events{/privacy}","received_events_url":"https://api.github.com/users/czardoz/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/postmanlabs/newman/pulls/691/commits","review_comments_url":"https://api.github.com/repos/postmanlabs/newman/pulls/691/comments","review_comment_url":"https://api.github.com/repos/postmanlabs/newman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postmanlabs/newman/issues/691/comments","statuses_url":"https://api.github.com/repos/postmanlabs/newman/statuses/d49fdb06907616e6c912c7dc19591c42b8b6edf9","head":{"label":"postmanlabs:feature/parallel-run-example","ref":"feature/parallel-run-example","sha":"d49fdb06907616e6c912c7dc19591c42b8b6edf9","user":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars.githubusercontent.com/u/10251060?v=3","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":17449493,"name":"newman","full_name":"postmanlabs/newman","owner":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars.githubusercontent.com/u/10251060?v=3","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postmanlabs/newman","description":"Newman is a command-line collection runner for Postman","fork":false,"url":"https://api.github.com/repos/postmanlabs/newman","forks_url":"https://api.github.com/repos/postmanlabs/newman/forks","keys_url":"https://api.github.com/repos/postmanlabs/newman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/newman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/newman/teams","hooks_url":"https://api.github.com/repos/postmanlabs/newman/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/newman/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/newman/events","assignees_url":"https://api.github.com/repos/postmanlabs/newman/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/newman/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/newman/tags","blobs_url":"https://api.github.com/repos/postmanlabs/newman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/newman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/newman/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/newman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/newman/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/newman/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/newman/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/newman/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/newman/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/newman/subscription","commits_url":"https://api.github.com/repos/postmanlabs/newman/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/newman/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/newman/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/newman/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/newman/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/newman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/newman/merges","archive_url":"https://api.github.com/repos/postmanlabs/newman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/newman/downloads","issues_url":"https://api.github.com/repos/postmanlabs/newman/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/newman/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/newman/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/newman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/newman/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/newman/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/newman/deployments","created_at":"2014-03-05T17:52:17Z","updated_at":"2016-10-12T03:36:12Z","pushed_at":"2016-10-12T13:15:07Z","git_url":"git://github.com/postmanlabs/newman.git","ssh_url":"git@github.com:postmanlabs/newman.git","clone_url":"https://github.com/postmanlabs/newman.git","svn_url":"https://github.com/postmanlabs/newman","homepage":"http://www.getpostman.com","size":2130,"stargazers_count":1285,"watchers_count":1285,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":199,"mirror_url":null,"open_issues_count":51,"forks":199,"open_issues":51,"watchers":1285,"default_branch":"develop"}},"base":{"label":"postmanlabs:develop","ref":"develop","sha":"92d2b7f195224dcfe1eb1ba92b3873c592205be3","user":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars.githubusercontent.com/u/10251060?v=3","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":17449493,"name":"newman","full_name":"postmanlabs/newman","owner":{"login":"postmanlabs","id":10251060,"avatar_url":"https://avatars.githubusercontent.com/u/10251060?v=3","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/postmanlabs/newman","description":"Newman is a command-line collection runner for Postman","fork":false,"url":"https://api.github.com/repos/postmanlabs/newman","forks_url":"https://api.github.com/repos/postmanlabs/newman/forks","keys_url":"https://api.github.com/repos/postmanlabs/newman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/newman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/newman/teams","hooks_url":"https://api.github.com/repos/postmanlabs/newman/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/newman/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/newman/events","assignees_url":"https://api.github.com/repos/postmanlabs/newman/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/newman/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/newman/tags","blobs_url":"https://api.github.com/repos/postmanlabs/newman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/newman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/newman/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/newman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/newman/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/newman/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/newman/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/newman/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/newman/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/newman/subscription","commits_url":"https://api.github.com/repos/postmanlabs/newman/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/newman/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/newman/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/newman/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/newman/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/newman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/newman/merges","archive_url":"https://api.github.com/repos/postmanlabs/newman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/newman/downloads","issues_url":"https://api.github.com/repos/postmanlabs/newman/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/newman/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/newman/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/newman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/newman/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/newman/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/newman/deployments","created_at":"2014-03-05T17:52:17Z","updated_at":"2016-10-12T03:36:12Z","pushed_at":"2016-10-12T13:15:07Z","git_url":"git://github.com/postmanlabs/newman.git","ssh_url":"git@github.com:postmanlabs/newman.git","clone_url":"https://github.com/postmanlabs/newman.git","svn_url":"https://github.com/postmanlabs/newman","homepage":"http://www.getpostman.com","size":2130,"stargazers_count":1285,"watchers_count":1285,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":199,"mirror_url":null,"open_issues_count":51,"forks":199,"open_issues":51,"watchers":1285,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/691"},"html":{"href":"https://github.com/postmanlabs/newman/pull/691"},"issue":{"href":"https://api.github.com/repos/postmanlabs/newman/issues/691"},"comments":{"href":"https://api.github.com/repos/postmanlabs/newman/issues/691/comments"},"review_comments":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/691/comments"},"review_comment":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postmanlabs/newman/pulls/691/commits"},"statuses":{"href":"https://api.github.com/repos/postmanlabs/newman/statuses/d49fdb06907616e6c912c7dc19591c42b8b6edf9"}}}}
{"actor":{"display_login":"shamasis"}}