{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/326","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/326/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/326/events","html_url":"https://github.com/sindresorhus/ava/pull/326","id":121856708,"number":326,"title":"[WIP] TAP support","user":{"login":"vdemedes","id":697676,"avatar_url":"https://avatars.githubusercontent.com/u/697676?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemedes","html_url":"https://github.com/vdemedes","followers_url":"https://api.github.com/users/vdemedes/followers","following_url":"https://api.github.com/users/vdemedes/following{/other_user}","gists_url":"https://api.github.com/users/vdemedes/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemedes/subscriptions","organizations_url":"https://api.github.com/users/vdemedes/orgs","repos_url":"https://api.github.com/users/vdemedes/repos","events_url":"https://api.github.com/users/vdemedes/events{/privacy}","received_events_url":"https://api.github.com/users/vdemedes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-12T13:51:53Z","updated_at":"2015-12-15T19:09:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sindresorhus/ava/pulls/326","html_url":"https://github.com/sindresorhus/ava/pull/326","diff_url":"https://github.com/sindresorhus/ava/pull/326.diff","patch_url":"https://github.com/sindresorhus/ava/pull/326.patch"},"body":"This PR fixes #27 and #324.\r\n\r\nIt adds `--tap` flag to a CLI to generate TAP-compatible output, which can then be used with any [3rd-party reporters](https://github.com/substack/tape#pretty-reporters).\r\n\r\n```\r\n$ ava --tap example.js | tap-nyan\r\n```\r\n\r\n<img width=\"300\" alt=\"screen shot 2015-12-12 at 2 51 24 pm\" src=\"https://cloud.githubusercontent.com/assets/697676/11762252/dc581b3e-a0df-11e5-8991-069453956470.png\">\r\n\r\n\r\nHere are the things to be resolved before this PR can be merged:\r\n\r\n- [ ] Test tracked assertions in `test/assert.js`\r\n- [ ] [Decide on assertion output](https://github.com/sindresorhus/ava/pull/326#issuecomment-164236043)\r\n- [ ] Test TAP output (and probably separate into own module)\r\n- [ ] Include unhandled rejections and exceptions into TAP output\r\n- [ ] Support fail-fast mode via `Bail out!`\r\n- [ ] Add information on enabling TAP output to Readme\r\n\r\nLet's discuss!"},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/164859595","html_url":"https://github.com/sindresorhus/ava/pull/326#issuecomment-164859595","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/326","id":164859595,"user":{"login":"vdemedes","id":697676,"avatar_url":"https://avatars.githubusercontent.com/u/697676?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemedes","html_url":"https://github.com/vdemedes","followers_url":"https://api.github.com/users/vdemedes/followers","following_url":"https://api.github.com/users/vdemedes/following{/other_user}","gists_url":"https://api.github.com/users/vdemedes/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemedes/subscriptions","organizations_url":"https://api.github.com/users/vdemedes/orgs","repos_url":"https://api.github.com/users/vdemedes/repos","events_url":"https://api.github.com/users/vdemedes/events{/privacy}","received_events_url":"https://api.github.com/users/vdemedes/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T19:09:35Z","updated_at":"2015-12-15T19:09:35Z","body":"@jamestalmage So I tried to use latest changes to assertions and turned out it's not actually usable for tracking assertions. I inserted `console.log(event)` at the beginning of `onAssertionEvent` and it shows no useful information (in case there was no error):\r\n\r\n```js\r\n{ originalMessage: undefined,\r\n  enhanced: true,\r\n  args: [ true, undefined ],\r\n  assertionThrew: false,\r\n  returnValue: undefined }\r\n```\r\n\r\n`event.powerAssertContext` is `undefined`.\r\n\r\nThe assertion is a simple `t.true(true)`. Am I missing something?"}}