{"action":"created","comment":{"url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/comments/30217635","id":30217635,"diff_hunk":"@@ -93,8 +122,16 @@ class TestResult {\n \n   std::string toString() const {\n     std::stringstream ss;\n-    ss << this->status << \" \" << this->number << \" \" << this->name << \" \"\n-       << this->getComment();\n+    ss << this->status << \" \" << this->number << \" \" << this->name;\n+#ifdef GTEST_TAP_13_DIAGNOSTIC\n+    std::string comment_text = this->getComment();\n+    if (!comment_text.empty()) {\n+      ss << std::endl\n+       << \"# Diagnostic\" << std::endl\n+       << \"  ---\" << std::endl\n+       << \"  \" << replace_all_copy(this->getComment(), \"\\n\", \"\\n  \");\n+    }\n+#endif","path":"src/tap.h","position":54,"original_position":54,"commit_id":"6acacc5e93cc06406ba80c9362ac81a9f4189987","original_commit_id":"6acacc5e93cc06406ba80c9362ac81a9f4189987","user":{"login":"toch","id":1059797,"avatar_url":"https://avatars.githubusercontent.com/u/1059797?v=3","gravatar_id":"","url":"https://api.github.com/users/toch","html_url":"https://github.com/toch","followers_url":"https://api.github.com/users/toch/followers","following_url":"https://api.github.com/users/toch/following{/other_user}","gists_url":"https://api.github.com/users/toch/gists{/gist_id}","starred_url":"https://api.github.com/users/toch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toch/subscriptions","organizations_url":"https://api.github.com/users/toch/orgs","repos_url":"https://api.github.com/users/toch/repos","events_url":"https://api.github.com/users/toch/events{/privacy}","received_events_url":"https://api.github.com/users/toch/received_events","type":"User","site_admin":false},"body":"Considering that initially, [a comment was never set](https://github.com/kinow/gtest-tap-listener/blob/master/src/tap.h#L141), I think the default behavior is still the same. Have I missed something?","created_at":"2015-05-13T10:08:03Z","updated_at":"2015-05-13T10:08:03Z","html_url":"https://github.com/kinow/gtest-tap-listener/pull/6#discussion_r30217635","pull_request_url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/comments/30217635"},"html":{"href":"https://github.com/kinow/gtest-tap-listener/pull/6#discussion_r30217635"},"pull_request":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6","id":34915305,"html_url":"https://github.com/kinow/gtest-tap-listener/pull/6","diff_url":"https://github.com/kinow/gtest-tap-listener/pull/6.diff","patch_url":"https://github.com/kinow/gtest-tap-listener/pull/6.patch","issue_url":"https://api.github.com/repos/kinow/gtest-tap-listener/issues/6","number":6,"state":"open","locked":false,"title":"Diagnostic and TAP version","user":{"login":"toch","id":1059797,"avatar_url":"https://avatars.githubusercontent.com/u/1059797?v=3","gravatar_id":"","url":"https://api.github.com/users/toch","html_url":"https://github.com/toch","followers_url":"https://api.github.com/users/toch/followers","following_url":"https://api.github.com/users/toch/following{/other_user}","gists_url":"https://api.github.com/users/toch/gists{/gist_id}","starred_url":"https://api.github.com/users/toch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toch/subscriptions","organizations_url":"https://api.github.com/users/toch/orgs","repos_url":"https://api.github.com/users/toch/repos","events_url":"https://api.github.com/users/toch/events{/privacy}","received_events_url":"https://api.github.com/users/toch/received_events","type":"User","site_admin":false},"body":"Thanks for TAP gtest listener, very useful.\r\n\r\nAs I missed the diagnostics, I've implemented it according the [spec](https://testanything.org/tap-version-13-specification.html). So, here my little give-back.\r\n\r\nWhat do you think?","created_at":"2015-05-07T13:30:30Z","updated_at":"2015-05-13T10:08:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c95eb4cbde848ed921d98b7f3eda7b00a1a41f76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6/commits","review_comments_url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6/comments","review_comment_url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kinow/gtest-tap-listener/issues/6/comments","statuses_url":"https://api.github.com/repos/kinow/gtest-tap-listener/statuses/6acacc5e93cc06406ba80c9362ac81a9f4189987","head":{"label":"toch:master","ref":"master","sha":"6acacc5e93cc06406ba80c9362ac81a9f4189987","user":{"login":"toch","id":1059797,"avatar_url":"https://avatars.githubusercontent.com/u/1059797?v=3","gravatar_id":"","url":"https://api.github.com/users/toch","html_url":"https://github.com/toch","followers_url":"https://api.github.com/users/toch/followers","following_url":"https://api.github.com/users/toch/following{/other_user}","gists_url":"https://api.github.com/users/toch/gists{/gist_id}","starred_url":"https://api.github.com/users/toch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toch/subscriptions","organizations_url":"https://api.github.com/users/toch/orgs","repos_url":"https://api.github.com/users/toch/repos","events_url":"https://api.github.com/users/toch/events{/privacy}","received_events_url":"https://api.github.com/users/toch/received_events","type":"User","site_admin":false},"repo":{"id":35221143,"name":"gtest-tap-listener","full_name":"toch/gtest-tap-listener","owner":{"login":"toch","id":1059797,"avatar_url":"https://avatars.githubusercontent.com/u/1059797?v=3","gravatar_id":"","url":"https://api.github.com/users/toch","html_url":"https://github.com/toch","followers_url":"https://api.github.com/users/toch/followers","following_url":"https://api.github.com/users/toch/following{/other_user}","gists_url":"https://api.github.com/users/toch/gists{/gist_id}","starred_url":"https://api.github.com/users/toch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toch/subscriptions","organizations_url":"https://api.github.com/users/toch/orgs","repos_url":"https://api.github.com/users/toch/repos","events_url":"https://api.github.com/users/toch/events{/privacy}","received_events_url":"https://api.github.com/users/toch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toch/gtest-tap-listener","description":"GoogleTest TAP Listener","fork":true,"url":"https://api.github.com/repos/toch/gtest-tap-listener","forks_url":"https://api.github.com/repos/toch/gtest-tap-listener/forks","keys_url":"https://api.github.com/repos/toch/gtest-tap-listener/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toch/gtest-tap-listener/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toch/gtest-tap-listener/teams","hooks_url":"https://api.github.com/repos/toch/gtest-tap-listener/hooks","issue_events_url":"https://api.github.com/repos/toch/gtest-tap-listener/issues/events{/number}","events_url":"https://api.github.com/repos/toch/gtest-tap-listener/events","assignees_url":"https://api.github.com/repos/toch/gtest-tap-listener/assignees{/user}","branches_url":"https://api.github.com/repos/toch/gtest-tap-listener/branches{/branch}","tags_url":"https://api.github.com/repos/toch/gtest-tap-listener/tags","blobs_url":"https://api.github.com/repos/toch/gtest-tap-listener/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toch/gtest-tap-listener/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toch/gtest-tap-listener/git/refs{/sha}","trees_url":"https://api.github.com/repos/toch/gtest-tap-listener/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toch/gtest-tap-listener/statuses/{sha}","languages_url":"https://api.github.com/repos/toch/gtest-tap-listener/languages","stargazers_url":"https://api.github.com/repos/toch/gtest-tap-listener/stargazers","contributors_url":"https://api.github.com/repos/toch/gtest-tap-listener/contributors","subscribers_url":"https://api.github.com/repos/toch/gtest-tap-listener/subscribers","subscription_url":"https://api.github.com/repos/toch/gtest-tap-listener/subscription","commits_url":"https://api.github.com/repos/toch/gtest-tap-listener/commits{/sha}","git_commits_url":"https://api.github.com/repos/toch/gtest-tap-listener/git/commits{/sha}","comments_url":"https://api.github.com/repos/toch/gtest-tap-listener/comments{/number}","issue_comment_url":"https://api.github.com/repos/toch/gtest-tap-listener/issues/comments{/number}","contents_url":"https://api.github.com/repos/toch/gtest-tap-listener/contents/{+path}","compare_url":"https://api.github.com/repos/toch/gtest-tap-listener/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toch/gtest-tap-listener/merges","archive_url":"https://api.github.com/repos/toch/gtest-tap-listener/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toch/gtest-tap-listener/downloads","issues_url":"https://api.github.com/repos/toch/gtest-tap-listener/issues{/number}","pulls_url":"https://api.github.com/repos/toch/gtest-tap-listener/pulls{/number}","milestones_url":"https://api.github.com/repos/toch/gtest-tap-listener/milestones{/number}","notifications_url":"https://api.github.com/repos/toch/gtest-tap-listener/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toch/gtest-tap-listener/labels{/name}","releases_url":"https://api.github.com/repos/toch/gtest-tap-listener/releases{/id}","created_at":"2015-05-07T13:19:23Z","updated_at":"2015-05-08T13:33:32Z","pushed_at":"2015-05-12T10:56:43Z","git_url":"git://github.com/toch/gtest-tap-listener.git","ssh_url":"git@github.com:toch/gtest-tap-listener.git","clone_url":"https://github.com/toch/gtest-tap-listener.git","svn_url":"https://github.com/toch/gtest-tap-listener","homepage":"http://www.tap4j.org","size":101,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kinow:master","ref":"master","sha":"351a2fe2f02c164e9e2c9970c9962610cf0f6897","user":{"login":"kinow","id":304786,"avatar_url":"https://avatars.githubusercontent.com/u/304786?v=3","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false},"repo":{"id":2516864,"name":"gtest-tap-listener","full_name":"kinow/gtest-tap-listener","owner":{"login":"kinow","id":304786,"avatar_url":"https://avatars.githubusercontent.com/u/304786?v=3","gravatar_id":"","url":"https://api.github.com/users/kinow","html_url":"https://github.com/kinow","followers_url":"https://api.github.com/users/kinow/followers","following_url":"https://api.github.com/users/kinow/following{/other_user}","gists_url":"https://api.github.com/users/kinow/gists{/gist_id}","starred_url":"https://api.github.com/users/kinow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinow/subscriptions","organizations_url":"https://api.github.com/users/kinow/orgs","repos_url":"https://api.github.com/users/kinow/repos","events_url":"https://api.github.com/users/kinow/events{/privacy}","received_events_url":"https://api.github.com/users/kinow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kinow/gtest-tap-listener","description":"GoogleTest TAP Listener","fork":false,"url":"https://api.github.com/repos/kinow/gtest-tap-listener","forks_url":"https://api.github.com/repos/kinow/gtest-tap-listener/forks","keys_url":"https://api.github.com/repos/kinow/gtest-tap-listener/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kinow/gtest-tap-listener/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kinow/gtest-tap-listener/teams","hooks_url":"https://api.github.com/repos/kinow/gtest-tap-listener/hooks","issue_events_url":"https://api.github.com/repos/kinow/gtest-tap-listener/issues/events{/number}","events_url":"https://api.github.com/repos/kinow/gtest-tap-listener/events","assignees_url":"https://api.github.com/repos/kinow/gtest-tap-listener/assignees{/user}","branches_url":"https://api.github.com/repos/kinow/gtest-tap-listener/branches{/branch}","tags_url":"https://api.github.com/repos/kinow/gtest-tap-listener/tags","blobs_url":"https://api.github.com/repos/kinow/gtest-tap-listener/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kinow/gtest-tap-listener/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kinow/gtest-tap-listener/git/refs{/sha}","trees_url":"https://api.github.com/repos/kinow/gtest-tap-listener/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kinow/gtest-tap-listener/statuses/{sha}","languages_url":"https://api.github.com/repos/kinow/gtest-tap-listener/languages","stargazers_url":"https://api.github.com/repos/kinow/gtest-tap-listener/stargazers","contributors_url":"https://api.github.com/repos/kinow/gtest-tap-listener/contributors","subscribers_url":"https://api.github.com/repos/kinow/gtest-tap-listener/subscribers","subscription_url":"https://api.github.com/repos/kinow/gtest-tap-listener/subscription","commits_url":"https://api.github.com/repos/kinow/gtest-tap-listener/commits{/sha}","git_commits_url":"https://api.github.com/repos/kinow/gtest-tap-listener/git/commits{/sha}","comments_url":"https://api.github.com/repos/kinow/gtest-tap-listener/comments{/number}","issue_comment_url":"https://api.github.com/repos/kinow/gtest-tap-listener/issues/comments{/number}","contents_url":"https://api.github.com/repos/kinow/gtest-tap-listener/contents/{+path}","compare_url":"https://api.github.com/repos/kinow/gtest-tap-listener/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kinow/gtest-tap-listener/merges","archive_url":"https://api.github.com/repos/kinow/gtest-tap-listener/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kinow/gtest-tap-listener/downloads","issues_url":"https://api.github.com/repos/kinow/gtest-tap-listener/issues{/number}","pulls_url":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls{/number}","milestones_url":"https://api.github.com/repos/kinow/gtest-tap-listener/milestones{/number}","notifications_url":"https://api.github.com/repos/kinow/gtest-tap-listener/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kinow/gtest-tap-listener/labels{/name}","releases_url":"https://api.github.com/repos/kinow/gtest-tap-listener/releases{/id}","created_at":"2011-10-05T04:39:58Z","updated_at":"2015-05-08T07:50:25Z","pushed_at":"2015-05-12T10:56:43Z","git_url":"git://github.com/kinow/gtest-tap-listener.git","ssh_url":"git@github.com:kinow/gtest-tap-listener.git","clone_url":"https://github.com/kinow/gtest-tap-listener.git","svn_url":"https://github.com/kinow/gtest-tap-listener","homepage":"http://www.tap4j.org","size":251,"stargazers_count":31,"watchers_count":31,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6"},"html":{"href":"https://github.com/kinow/gtest-tap-listener/pull/6"},"issue":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/issues/6"},"comments":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/kinow/gtest-tap-listener/statuses/6acacc5e93cc06406ba80c9362ac81a9f4189987"}}}}