{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/qunit/issues/790","labels_url":"https://api.github.com/repos/jquery/qunit/issues/790/labels{/name}","comments_url":"https://api.github.com/repos/jquery/qunit/issues/790/comments","events_url":"https://api.github.com/repos/jquery/qunit/issues/790/events","html_url":"https://github.com/jquery/qunit/pull/790","id":63083606,"number":790,"title":"Core: Implement a node stdout reporter","user":{"login":"leobalter","id":301201,"avatar_url":"https://avatars.githubusercontent.com/u/301201?v=3","gravatar_id":"","url":"https://api.github.com/users/leobalter","html_url":"https://github.com/leobalter","followers_url":"https://api.github.com/users/leobalter/followers","following_url":"https://api.github.com/users/leobalter/following{/other_user}","gists_url":"https://api.github.com/users/leobalter/gists{/gist_id}","starred_url":"https://api.github.com/users/leobalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leobalter/subscriptions","organizations_url":"https://api.github.com/users/leobalter/orgs","repos_url":"https://api.github.com/users/leobalter/repos","events_url":"https://api.github.com/users/leobalter/events{/privacy}","received_events_url":"https://api.github.com/users/leobalter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jquery/qunit/labels/CLA:%20Valid","name":"CLA: Valid","color":"007700"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-19T20:22:02Z","updated_at":"2015-04-08T15:31:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jquery/qunit/pulls/790","html_url":"https://github.com/jquery/qunit/pull/790","diff_url":"https://github.com/jquery/qunit/pull/790.diff","patch_url":"https://github.com/jquery/qunit/pull/790.patch"},"body":"With this reporter we can use QUnit directly on npm environments:\r\n\r\n```js\r\nvar QUnit = require( \"../dist/QUnit\" );\r\n\r\nQUnit.reporter();\r\n\r\nrequire( \"./unit-tests.js\" );\r\n\r\nQUnit.load();\r\n```\r\n\r\nThe stdout reporter is only activated when called, this way we keep the retrocompatibility.\r\n\r\nLog example: https://www.dropbox.com/s/07k3funzdwp0y7r/Screenshot%202015-03-19%2016.18.25.png?dl=0\r\n\r\nThe reporter function also accepts an object with the options, the only current available options is `output`:\r\n\r\n```js\r\n// Will print a minimal report, with only dots for each assertion,\r\n// some extra information comes on failures to help locate the issue\r\nQUnit.reporter({\r\n  output: \"minimal\"\r\n});\r\n```\r\n\r\n```js\r\n// Will print a more detailed report, listing each passing assertion.\r\nQUnit.reporter({\r\n  output: \"verbose\"\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/jquery/qunit/issues/comments/90951530","html_url":"https://github.com/jquery/qunit/pull/790#issuecomment-90951530","issue_url":"https://api.github.com/repos/jquery/qunit/issues/790","id":90951530,"user":{"login":"leobalter","id":301201,"avatar_url":"https://avatars.githubusercontent.com/u/301201?v=3","gravatar_id":"","url":"https://api.github.com/users/leobalter","html_url":"https://github.com/leobalter","followers_url":"https://api.github.com/users/leobalter/followers","following_url":"https://api.github.com/users/leobalter/following{/other_user}","gists_url":"https://api.github.com/users/leobalter/gists{/gist_id}","starred_url":"https://api.github.com/users/leobalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leobalter/subscriptions","organizations_url":"https://api.github.com/users/leobalter/orgs","repos_url":"https://api.github.com/users/leobalter/repos","events_url":"https://api.github.com/users/leobalter/events{/privacy}","received_events_url":"https://api.github.com/users/leobalter/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T15:31:04Z","updated_at":"2015-04-08T15:31:04Z","body":"bumped the reporter module to 0.2.0 where I included output tests. (the minor version was due to some differences on the stderr output on failing tests)"}}