{"action":"created","comment":{"url":"https://api.github.com/repos/js-reporters/js-reporters/pulls/comments/74905123","id":74905123,"diff_hunk":"@@ -0,0 +1,21 @@\n+/* global QUnit, mocha, jasmine */\n+\n+import QUnitAdapter from './adapters/QUnitAdapter.js'\n+import MochaAdapter from './adapters/MochaAdapter.js'\n+import JasmineAdapter from './adapters/JasmineAdapter.js'\n+\n+export function autoRegister () {\n+  var runner\n+\n+  if (QUnit) {\n+    runner = new QUnitAdapter(QUnit)\n+  } else if (mocha) {\n+    runner = new MochaAdapter(mocha)\n+  } else if (jasmine) {\n+    runner = new JasmineAdapter(jasmine.getEnv())\n+  } else {\n+    throw new Error('JsReporters: No testing framework was found')","path":"lib/helpers.js","position":17,"original_position":17,"commit_id":"b37e93bbccde6580b6bf507e36deacca17b1cb6b","original_commit_id":"b37e93bbccde6580b6bf507e36deacca17b1cb6b","user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"body":"Could mention the supported frameworks here.","created_at":"2016-08-16T09:45:28Z","updated_at":"2016-08-16T09:45:28Z","html_url":"https://github.com/js-reporters/js-reporters/pull/90#discussion_r74905123","pull_request_url":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/js-reporters/js-reporters/pulls/comments/74905123"},"html":{"href":"https://github.com/js-reporters/js-reporters/pull/90#discussion_r74905123"},"pull_request":{"href":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90","id":81381265,"html_url":"https://github.com/js-reporters/js-reporters/pull/90","diff_url":"https://github.com/js-reporters/js-reporters/pull/90.diff","patch_url":"https://github.com/js-reporters/js-reporters/pull/90.patch","issue_url":"https://api.github.com/repos/js-reporters/js-reporters/issues/90","number":90,"state":"open","locked":false,"title":"Add autoregister function","user":{"login":"flore77","id":11819686,"avatar_url":"https://avatars.githubusercontent.com/u/11819686?v=3","gravatar_id":"","url":"https://api.github.com/users/flore77","html_url":"https://github.com/flore77","followers_url":"https://api.github.com/users/flore77/followers","following_url":"https://api.github.com/users/flore77/following{/other_user}","gists_url":"https://api.github.com/users/flore77/gists{/gist_id}","starred_url":"https://api.github.com/users/flore77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flore77/subscriptions","organizations_url":"https://api.github.com/users/flore77/orgs","repos_url":"https://api.github.com/users/flore77/repos","events_url":"https://api.github.com/users/flore77/events{/privacy}","received_events_url":"https://api.github.com/users/flore77/received_events","type":"User","site_admin":false},"body":"This adds an `autoregister` function in which js-reporters checks for global testing frameworks and registers the respective adapter returning the runner.","created_at":"2016-08-15T21:46:46Z","updated_at":"2016-08-16T09:45:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d3323514fece6c287930a4de11fc785cef8c6b6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90/commits","review_comments_url":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90/comments","review_comment_url":"https://api.github.com/repos/js-reporters/js-reporters/pulls/comments{/number}","comments_url":"https://api.github.com/repos/js-reporters/js-reporters/issues/90/comments","statuses_url":"https://api.github.com/repos/js-reporters/js-reporters/statuses/b37e93bbccde6580b6bf507e36deacca17b1cb6b","head":{"label":"js-reporters:add-autoregister-function","ref":"add-autoregister-function","sha":"b37e93bbccde6580b6bf507e36deacca17b1cb6b","user":{"login":"js-reporters","id":8627100,"avatar_url":"https://avatars.githubusercontent.com/u/8627100?v=3","gravatar_id":"","url":"https://api.github.com/users/js-reporters","html_url":"https://github.com/js-reporters","followers_url":"https://api.github.com/users/js-reporters/followers","following_url":"https://api.github.com/users/js-reporters/following{/other_user}","gists_url":"https://api.github.com/users/js-reporters/gists{/gist_id}","starred_url":"https://api.github.com/users/js-reporters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-reporters/subscriptions","organizations_url":"https://api.github.com/users/js-reporters/orgs","repos_url":"https://api.github.com/users/js-reporters/repos","events_url":"https://api.github.com/users/js-reporters/events{/privacy}","received_events_url":"https://api.github.com/users/js-reporters/received_events","type":"Organization","site_admin":false},"repo":{"id":23576276,"name":"js-reporters","full_name":"js-reporters/js-reporters","owner":{"login":"js-reporters","id":8627100,"avatar_url":"https://avatars.githubusercontent.com/u/8627100?v=3","gravatar_id":"","url":"https://api.github.com/users/js-reporters","html_url":"https://github.com/js-reporters","followers_url":"https://api.github.com/users/js-reporters/followers","following_url":"https://api.github.com/users/js-reporters/following{/other_user}","gists_url":"https://api.github.com/users/js-reporters/gists{/gist_id}","starred_url":"https://api.github.com/users/js-reporters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-reporters/subscriptions","organizations_url":"https://api.github.com/users/js-reporters/orgs","repos_url":"https://api.github.com/users/js-reporters/repos","events_url":"https://api.github.com/users/js-reporters/events{/privacy}","received_events_url":"https://api.github.com/users/js-reporters/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-reporters/js-reporters","description":"The Common Reporter Interface (CRI) for JavaScript Unit Testing Frameworks","fork":false,"url":"https://api.github.com/repos/js-reporters/js-reporters","forks_url":"https://api.github.com/repos/js-reporters/js-reporters/forks","keys_url":"https://api.github.com/repos/js-reporters/js-reporters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-reporters/js-reporters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-reporters/js-reporters/teams","hooks_url":"https://api.github.com/repos/js-reporters/js-reporters/hooks","issue_events_url":"https://api.github.com/repos/js-reporters/js-reporters/issues/events{/number}","events_url":"https://api.github.com/repos/js-reporters/js-reporters/events","assignees_url":"https://api.github.com/repos/js-reporters/js-reporters/assignees{/user}","branches_url":"https://api.github.com/repos/js-reporters/js-reporters/branches{/branch}","tags_url":"https://api.github.com/repos/js-reporters/js-reporters/tags","blobs_url":"https://api.github.com/repos/js-reporters/js-reporters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-reporters/js-reporters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-reporters/js-reporters/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-reporters/js-reporters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-reporters/js-reporters/statuses/{sha}","languages_url":"https://api.github.com/repos/js-reporters/js-reporters/languages","stargazers_url":"https://api.github.com/repos/js-reporters/js-reporters/stargazers","contributors_url":"https://api.github.com/repos/js-reporters/js-reporters/contributors","subscribers_url":"https://api.github.com/repos/js-reporters/js-reporters/subscribers","subscription_url":"https://api.github.com/repos/js-reporters/js-reporters/subscription","commits_url":"https://api.github.com/repos/js-reporters/js-reporters/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-reporters/js-reporters/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-reporters/js-reporters/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-reporters/js-reporters/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-reporters/js-reporters/contents/{+path}","compare_url":"https://api.github.com/repos/js-reporters/js-reporters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-reporters/js-reporters/merges","archive_url":"https://api.github.com/repos/js-reporters/js-reporters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-reporters/js-reporters/downloads","issues_url":"https://api.github.com/repos/js-reporters/js-reporters/issues{/number}","pulls_url":"https://api.github.com/repos/js-reporters/js-reporters/pulls{/number}","milestones_url":"https://api.github.com/repos/js-reporters/js-reporters/milestones{/number}","notifications_url":"https://api.github.com/repos/js-reporters/js-reporters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-reporters/js-reporters/labels{/name}","releases_url":"https://api.github.com/repos/js-reporters/js-reporters/releases{/id}","deployments_url":"https://api.github.com/repos/js-reporters/js-reporters/deployments","created_at":"2014-09-02T11:34:04Z","updated_at":"2016-08-12T20:29:22Z","pushed_at":"2016-08-16T07:07:58Z","git_url":"git://github.com/js-reporters/js-reporters.git","ssh_url":"git@github.com:js-reporters/js-reporters.git","clone_url":"https://github.com/js-reporters/js-reporters.git","svn_url":"https://github.com/js-reporters/js-reporters","homepage":"","size":513,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":22,"default_branch":"master"}},"base":{"label":"js-reporters:master","ref":"master","sha":"0cddf82153db8ea71567dd5d8387e9cc0205ff19","user":{"login":"js-reporters","id":8627100,"avatar_url":"https://avatars.githubusercontent.com/u/8627100?v=3","gravatar_id":"","url":"https://api.github.com/users/js-reporters","html_url":"https://github.com/js-reporters","followers_url":"https://api.github.com/users/js-reporters/followers","following_url":"https://api.github.com/users/js-reporters/following{/other_user}","gists_url":"https://api.github.com/users/js-reporters/gists{/gist_id}","starred_url":"https://api.github.com/users/js-reporters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-reporters/subscriptions","organizations_url":"https://api.github.com/users/js-reporters/orgs","repos_url":"https://api.github.com/users/js-reporters/repos","events_url":"https://api.github.com/users/js-reporters/events{/privacy}","received_events_url":"https://api.github.com/users/js-reporters/received_events","type":"Organization","site_admin":false},"repo":{"id":23576276,"name":"js-reporters","full_name":"js-reporters/js-reporters","owner":{"login":"js-reporters","id":8627100,"avatar_url":"https://avatars.githubusercontent.com/u/8627100?v=3","gravatar_id":"","url":"https://api.github.com/users/js-reporters","html_url":"https://github.com/js-reporters","followers_url":"https://api.github.com/users/js-reporters/followers","following_url":"https://api.github.com/users/js-reporters/following{/other_user}","gists_url":"https://api.github.com/users/js-reporters/gists{/gist_id}","starred_url":"https://api.github.com/users/js-reporters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js-reporters/subscriptions","organizations_url":"https://api.github.com/users/js-reporters/orgs","repos_url":"https://api.github.com/users/js-reporters/repos","events_url":"https://api.github.com/users/js-reporters/events{/privacy}","received_events_url":"https://api.github.com/users/js-reporters/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/js-reporters/js-reporters","description":"The Common Reporter Interface (CRI) for JavaScript Unit Testing Frameworks","fork":false,"url":"https://api.github.com/repos/js-reporters/js-reporters","forks_url":"https://api.github.com/repos/js-reporters/js-reporters/forks","keys_url":"https://api.github.com/repos/js-reporters/js-reporters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/js-reporters/js-reporters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/js-reporters/js-reporters/teams","hooks_url":"https://api.github.com/repos/js-reporters/js-reporters/hooks","issue_events_url":"https://api.github.com/repos/js-reporters/js-reporters/issues/events{/number}","events_url":"https://api.github.com/repos/js-reporters/js-reporters/events","assignees_url":"https://api.github.com/repos/js-reporters/js-reporters/assignees{/user}","branches_url":"https://api.github.com/repos/js-reporters/js-reporters/branches{/branch}","tags_url":"https://api.github.com/repos/js-reporters/js-reporters/tags","blobs_url":"https://api.github.com/repos/js-reporters/js-reporters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/js-reporters/js-reporters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/js-reporters/js-reporters/git/refs{/sha}","trees_url":"https://api.github.com/repos/js-reporters/js-reporters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/js-reporters/js-reporters/statuses/{sha}","languages_url":"https://api.github.com/repos/js-reporters/js-reporters/languages","stargazers_url":"https://api.github.com/repos/js-reporters/js-reporters/stargazers","contributors_url":"https://api.github.com/repos/js-reporters/js-reporters/contributors","subscribers_url":"https://api.github.com/repos/js-reporters/js-reporters/subscribers","subscription_url":"https://api.github.com/repos/js-reporters/js-reporters/subscription","commits_url":"https://api.github.com/repos/js-reporters/js-reporters/commits{/sha}","git_commits_url":"https://api.github.com/repos/js-reporters/js-reporters/git/commits{/sha}","comments_url":"https://api.github.com/repos/js-reporters/js-reporters/comments{/number}","issue_comment_url":"https://api.github.com/repos/js-reporters/js-reporters/issues/comments{/number}","contents_url":"https://api.github.com/repos/js-reporters/js-reporters/contents/{+path}","compare_url":"https://api.github.com/repos/js-reporters/js-reporters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/js-reporters/js-reporters/merges","archive_url":"https://api.github.com/repos/js-reporters/js-reporters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/js-reporters/js-reporters/downloads","issues_url":"https://api.github.com/repos/js-reporters/js-reporters/issues{/number}","pulls_url":"https://api.github.com/repos/js-reporters/js-reporters/pulls{/number}","milestones_url":"https://api.github.com/repos/js-reporters/js-reporters/milestones{/number}","notifications_url":"https://api.github.com/repos/js-reporters/js-reporters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/js-reporters/js-reporters/labels{/name}","releases_url":"https://api.github.com/repos/js-reporters/js-reporters/releases{/id}","deployments_url":"https://api.github.com/repos/js-reporters/js-reporters/deployments","created_at":"2014-09-02T11:34:04Z","updated_at":"2016-08-12T20:29:22Z","pushed_at":"2016-08-16T07:07:58Z","git_url":"git://github.com/js-reporters/js-reporters.git","ssh_url":"git@github.com:js-reporters/js-reporters.git","clone_url":"https://github.com/js-reporters/js-reporters.git","svn_url":"https://github.com/js-reporters/js-reporters","homepage":"","size":513,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90"},"html":{"href":"https://github.com/js-reporters/js-reporters/pull/90"},"issue":{"href":"https://api.github.com/repos/js-reporters/js-reporters/issues/90"},"comments":{"href":"https://api.github.com/repos/js-reporters/js-reporters/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/js-reporters/js-reporters/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/js-reporters/js-reporters/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/js-reporters/js-reporters/statuses/b37e93bbccde6580b6bf507e36deacca17b1cb6b"}}}}
{"actor":{"display_login":"jzaefferer"}}