{"action":"opened","number":39,"pull_request":{"url":"https://api.github.com/repos/mirage/alcotest/pulls/39","id":54604589,"html_url":"https://github.com/mirage/alcotest/pull/39","diff_url":"https://github.com/mirage/alcotest/pull/39.diff","patch_url":"https://github.com/mirage/alcotest/pull/39.patch","issue_url":"https://api.github.com/repos/mirage/alcotest/issues/39","number":39,"state":"open","locked":false,"title":"Fix output file contents","user":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"body":"The current output file contents are mostly useless in the case of `Alcotest`-generated error messages. Lots of colorful successful assertion messages are printed but the actual cause of test failure is omitted.\r\n\r\nThis patch causes error and exception messages to be printed to the output file when the output is active. It also uses a single open fd to the result file for both stdout and stderr in order to have the message streams co-operate regarding file offset.","created_at":"2015-12-26T16:51:10Z","updated_at":"2015-12-26T16:51:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mirage/alcotest/pulls/39/commits","review_comments_url":"https://api.github.com/repos/mirage/alcotest/pulls/39/comments","review_comment_url":"https://api.github.com/repos/mirage/alcotest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirage/alcotest/issues/39/comments","statuses_url":"https://api.github.com/repos/mirage/alcotest/statuses/6afb14cd932c244f236860d325aff97e3a2c6001","head":{"label":"dsheets:fix-output-file-contents","ref":"fix-output-file-contents","sha":"6afb14cd932c244f236860d325aff97e3a2c6001","user":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"repo":{"id":15764980,"name":"alcotest","full_name":"dsheets/alcotest","owner":{"login":"dsheets","id":59918,"avatar_url":"https://avatars.githubusercontent.com/u/59918?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheets","html_url":"https://github.com/dsheets","followers_url":"https://api.github.com/users/dsheets/followers","following_url":"https://api.github.com/users/dsheets/following{/other_user}","gists_url":"https://api.github.com/users/dsheets/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheets/subscriptions","organizations_url":"https://api.github.com/users/dsheets/orgs","repos_url":"https://api.github.com/users/dsheets/repos","events_url":"https://api.github.com/users/dsheets/events{/privacy}","received_events_url":"https://api.github.com/users/dsheets/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsheets/alcotest","description":"A lightweight and colourful test framework","fork":true,"url":"https://api.github.com/repos/dsheets/alcotest","forks_url":"https://api.github.com/repos/dsheets/alcotest/forks","keys_url":"https://api.github.com/repos/dsheets/alcotest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsheets/alcotest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsheets/alcotest/teams","hooks_url":"https://api.github.com/repos/dsheets/alcotest/hooks","issue_events_url":"https://api.github.com/repos/dsheets/alcotest/issues/events{/number}","events_url":"https://api.github.com/repos/dsheets/alcotest/events","assignees_url":"https://api.github.com/repos/dsheets/alcotest/assignees{/user}","branches_url":"https://api.github.com/repos/dsheets/alcotest/branches{/branch}","tags_url":"https://api.github.com/repos/dsheets/alcotest/tags","blobs_url":"https://api.github.com/repos/dsheets/alcotest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsheets/alcotest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsheets/alcotest/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsheets/alcotest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsheets/alcotest/statuses/{sha}","languages_url":"https://api.github.com/repos/dsheets/alcotest/languages","stargazers_url":"https://api.github.com/repos/dsheets/alcotest/stargazers","contributors_url":"https://api.github.com/repos/dsheets/alcotest/contributors","subscribers_url":"https://api.github.com/repos/dsheets/alcotest/subscribers","subscription_url":"https://api.github.com/repos/dsheets/alcotest/subscription","commits_url":"https://api.github.com/repos/dsheets/alcotest/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsheets/alcotest/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsheets/alcotest/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsheets/alcotest/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsheets/alcotest/contents/{+path}","compare_url":"https://api.github.com/repos/dsheets/alcotest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsheets/alcotest/merges","archive_url":"https://api.github.com/repos/dsheets/alcotest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsheets/alcotest/downloads","issues_url":"https://api.github.com/repos/dsheets/alcotest/issues{/number}","pulls_url":"https://api.github.com/repos/dsheets/alcotest/pulls{/number}","milestones_url":"https://api.github.com/repos/dsheets/alcotest/milestones{/number}","notifications_url":"https://api.github.com/repos/dsheets/alcotest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsheets/alcotest/labels{/name}","releases_url":"https://api.github.com/repos/dsheets/alcotest/releases{/id}","created_at":"2014-01-09T11:36:16Z","updated_at":"2015-06-01T13:58:49Z","pushed_at":"2015-12-26T16:48:33Z","git_url":"git://github.com/dsheets/alcotest.git","ssh_url":"git@github.com:dsheets/alcotest.git","clone_url":"https://github.com/dsheets/alcotest.git","svn_url":"https://github.com/dsheets/alcotest","homepage":null,"size":173,"stargazers_count":0,"watchers_count":0,"language":"OCaml","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":"mirage:master","ref":"master","sha":"36a50eb198a549ad07d5a44540b7accaf26069f4","user":{"login":"mirage","id":131943,"avatar_url":"https://avatars.githubusercontent.com/u/131943?v=3","gravatar_id":"","url":"https://api.github.com/users/mirage","html_url":"https://github.com/mirage","followers_url":"https://api.github.com/users/mirage/followers","following_url":"https://api.github.com/users/mirage/following{/other_user}","gists_url":"https://api.github.com/users/mirage/gists{/gist_id}","starred_url":"https://api.github.com/users/mirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirage/subscriptions","organizations_url":"https://api.github.com/users/mirage/orgs","repos_url":"https://api.github.com/users/mirage/repos","events_url":"https://api.github.com/users/mirage/events{/privacy}","received_events_url":"https://api.github.com/users/mirage/received_events","type":"Organization","site_admin":false},"repo":{"id":15141922,"name":"alcotest","full_name":"mirage/alcotest","owner":{"login":"mirage","id":131943,"avatar_url":"https://avatars.githubusercontent.com/u/131943?v=3","gravatar_id":"","url":"https://api.github.com/users/mirage","html_url":"https://github.com/mirage","followers_url":"https://api.github.com/users/mirage/followers","following_url":"https://api.github.com/users/mirage/following{/other_user}","gists_url":"https://api.github.com/users/mirage/gists{/gist_id}","starred_url":"https://api.github.com/users/mirage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirage/subscriptions","organizations_url":"https://api.github.com/users/mirage/orgs","repos_url":"https://api.github.com/users/mirage/repos","events_url":"https://api.github.com/users/mirage/events{/privacy}","received_events_url":"https://api.github.com/users/mirage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mirage/alcotest","description":"A lightweight and colourful test framework","fork":false,"url":"https://api.github.com/repos/mirage/alcotest","forks_url":"https://api.github.com/repos/mirage/alcotest/forks","keys_url":"https://api.github.com/repos/mirage/alcotest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirage/alcotest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirage/alcotest/teams","hooks_url":"https://api.github.com/repos/mirage/alcotest/hooks","issue_events_url":"https://api.github.com/repos/mirage/alcotest/issues/events{/number}","events_url":"https://api.github.com/repos/mirage/alcotest/events","assignees_url":"https://api.github.com/repos/mirage/alcotest/assignees{/user}","branches_url":"https://api.github.com/repos/mirage/alcotest/branches{/branch}","tags_url":"https://api.github.com/repos/mirage/alcotest/tags","blobs_url":"https://api.github.com/repos/mirage/alcotest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirage/alcotest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirage/alcotest/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirage/alcotest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirage/alcotest/statuses/{sha}","languages_url":"https://api.github.com/repos/mirage/alcotest/languages","stargazers_url":"https://api.github.com/repos/mirage/alcotest/stargazers","contributors_url":"https://api.github.com/repos/mirage/alcotest/contributors","subscribers_url":"https://api.github.com/repos/mirage/alcotest/subscribers","subscription_url":"https://api.github.com/repos/mirage/alcotest/subscription","commits_url":"https://api.github.com/repos/mirage/alcotest/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirage/alcotest/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirage/alcotest/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirage/alcotest/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirage/alcotest/contents/{+path}","compare_url":"https://api.github.com/repos/mirage/alcotest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirage/alcotest/merges","archive_url":"https://api.github.com/repos/mirage/alcotest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirage/alcotest/downloads","issues_url":"https://api.github.com/repos/mirage/alcotest/issues{/number}","pulls_url":"https://api.github.com/repos/mirage/alcotest/pulls{/number}","milestones_url":"https://api.github.com/repos/mirage/alcotest/milestones{/number}","notifications_url":"https://api.github.com/repos/mirage/alcotest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirage/alcotest/labels{/name}","releases_url":"https://api.github.com/repos/mirage/alcotest/releases{/id}","created_at":"2013-12-12T16:58:41Z","updated_at":"2015-12-10T21:22:50Z","pushed_at":"2015-12-20T23:30:40Z","git_url":"git://github.com/mirage/alcotest.git","ssh_url":"git@github.com:mirage/alcotest.git","clone_url":"https://github.com/mirage/alcotest.git","svn_url":"https://github.com/mirage/alcotest","homepage":null,"size":176,"stargazers_count":30,"watchers_count":30,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirage/alcotest/pulls/39"},"html":{"href":"https://github.com/mirage/alcotest/pull/39"},"issue":{"href":"https://api.github.com/repos/mirage/alcotest/issues/39"},"comments":{"href":"https://api.github.com/repos/mirage/alcotest/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/mirage/alcotest/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/mirage/alcotest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirage/alcotest/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/mirage/alcotest/statuses/6afb14cd932c244f236860d325aff97e3a2c6001"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":24,"deletions":10,"changed_files":1}}