{"action":"created","comment":{"url":"https://api.github.com/repos/coduno/api/pulls/comments/40791922","id":40791922,"diff_hunk":"@@ -0,0 +1,52 @@\n+package test\n+\n+import (\n+\t\"encoding/json\"\n+\t\"io\"\n+\t\"strconv\"\n+\n+\t\"github.com/coduno/api/model\"\n+\t\"github.com/coduno/api/runner\"\n+\t\"github.com/coduno/api/util\"\n+\t\"github.com/coduno/api/ws\"\n+\t\"golang.org/x/net/context\"\n+)\n+\n+func init() {\n+\tRegisterTester(CoderJunit, coderJunit)\n+}\n+\n+func coderJunit(ctx context.Context, t model.KeyedTest, sub model.KeyedSubmission, ball io.Reader) (err error) {\n+\tif _, ok := t.Params[\"test\"]; !ok {\n+\t\treturn ErrMissingParam(\"code\")\n+\t}\n+\n+\tcode := model.StoredObject{\n+\t\tBucket: util.TestsBucket,\n+\t\tName:   t.Params[\"test\"],\n+\t}\n+\tcodeStream := stream(ctx, code)\n+\tvar tr *model.JunitTestResult\n+\tif tr, err = runner.JUnit(ctx, ball, codeStream); err != nil {\n+\t\treturn\n+\t}\n+\n+\tshouldFail, err := strconv.ParseBool(t.Params[\"shouldFail\"])\n+\tif err != nil {\n+\t\treturn\n+\t}\n+\tctr := model.CoderJunitTestResult{\n+\t\tJunitTestResult: *tr,\n+\t\tExpectedFailure: shouldFail,","path":"test/coder_junit.go","position":40,"original_position":40,"commit_id":"4cff69c2eb4086b5a053a92f51eef3b5543d07b9","original_commit_id":"4cff69c2eb4086b5a053a92f51eef3b5543d07b9","user":{"login":"flowlo","id":542154,"avatar_url":"https://avatars.githubusercontent.com/u/542154?v=3","gravatar_id":"","url":"https://api.github.com/users/flowlo","html_url":"https://github.com/flowlo","followers_url":"https://api.github.com/users/flowlo/followers","following_url":"https://api.github.com/users/flowlo/following{/other_user}","gists_url":"https://api.github.com/users/flowlo/gists{/gist_id}","starred_url":"https://api.github.com/users/flowlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowlo/subscriptions","organizations_url":"https://api.github.com/users/flowlo/orgs","repos_url":"https://api.github.com/users/flowlo/repos","events_url":"https://api.github.com/users/flowlo/events{/privacy}","received_events_url":"https://api.github.com/users/flowlo/received_events","type":"User","site_admin":false},"body":"LOL. I did not see this when I wrote my earlier comment. I think that `ShouldFail` is WAY better than `ExpectedFailure`.","created_at":"2015-09-30T13:22:17Z","updated_at":"2015-09-30T13:22:17Z","html_url":"https://github.com/coduno/api/pull/97#discussion_r40791922","pull_request_url":"https://api.github.com/repos/coduno/api/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/coduno/api/pulls/comments/40791922"},"html":{"href":"https://github.com/coduno/api/pull/97#discussion_r40791922"},"pull_request":{"href":"https://api.github.com/repos/coduno/api/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/coduno/api/pulls/97","id":46179960,"html_url":"https://github.com/coduno/api/pull/97","diff_url":"https://github.com/coduno/api/pull/97.diff","patch_url":"https://github.com/coduno/api/pull/97.patch","issue_url":"https://api.github.com/repos/coduno/api/issues/97","number":97,"state":"open","locked":false,"title":"Add tester for unit tests","user":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"body":" * modify javaut runner so it can run unit tests either from coduno or users\r\n * add tester for unit tests written by users\r\n * create basic task for this purpose(unit testing an isPrime method)","created_at":"2015-09-28T16:45:43Z","updated_at":"2015-09-30T13:22:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d256ceb23ad54bd6bd57816e889152fb779e7f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coduno/api/pulls/97/commits","review_comments_url":"https://api.github.com/repos/coduno/api/pulls/97/comments","review_comment_url":"https://api.github.com/repos/coduno/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coduno/api/issues/97/comments","statuses_url":"https://api.github.com/repos/coduno/api/statuses/4cff69c2eb4086b5a053a92f51eef3b5543d07b9","head":{"label":"pbochis:add-coder-javaut-tester","ref":"add-coder-javaut-tester","sha":"4cff69c2eb4086b5a053a92f51eef3b5543d07b9","user":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"repo":{"id":38358089,"name":"api","full_name":"pbochis/api","owner":{"login":"pbochis","id":9076897,"avatar_url":"https://avatars.githubusercontent.com/u/9076897?v=3","gravatar_id":"","url":"https://api.github.com/users/pbochis","html_url":"https://github.com/pbochis","followers_url":"https://api.github.com/users/pbochis/followers","following_url":"https://api.github.com/users/pbochis/following{/other_user}","gists_url":"https://api.github.com/users/pbochis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbochis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbochis/subscriptions","organizations_url":"https://api.github.com/users/pbochis/orgs","repos_url":"https://api.github.com/users/pbochis/repos","events_url":"https://api.github.com/users/pbochis/events{/privacy}","received_events_url":"https://api.github.com/users/pbochis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pbochis/api","description":"App Engine component of Coduno","fork":true,"url":"https://api.github.com/repos/pbochis/api","forks_url":"https://api.github.com/repos/pbochis/api/forks","keys_url":"https://api.github.com/repos/pbochis/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbochis/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbochis/api/teams","hooks_url":"https://api.github.com/repos/pbochis/api/hooks","issue_events_url":"https://api.github.com/repos/pbochis/api/issues/events{/number}","events_url":"https://api.github.com/repos/pbochis/api/events","assignees_url":"https://api.github.com/repos/pbochis/api/assignees{/user}","branches_url":"https://api.github.com/repos/pbochis/api/branches{/branch}","tags_url":"https://api.github.com/repos/pbochis/api/tags","blobs_url":"https://api.github.com/repos/pbochis/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbochis/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbochis/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbochis/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbochis/api/statuses/{sha}","languages_url":"https://api.github.com/repos/pbochis/api/languages","stargazers_url":"https://api.github.com/repos/pbochis/api/stargazers","contributors_url":"https://api.github.com/repos/pbochis/api/contributors","subscribers_url":"https://api.github.com/repos/pbochis/api/subscribers","subscription_url":"https://api.github.com/repos/pbochis/api/subscription","commits_url":"https://api.github.com/repos/pbochis/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbochis/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbochis/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbochis/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbochis/api/contents/{+path}","compare_url":"https://api.github.com/repos/pbochis/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbochis/api/merges","archive_url":"https://api.github.com/repos/pbochis/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbochis/api/downloads","issues_url":"https://api.github.com/repos/pbochis/api/issues{/number}","pulls_url":"https://api.github.com/repos/pbochis/api/pulls{/number}","milestones_url":"https://api.github.com/repos/pbochis/api/milestones{/number}","notifications_url":"https://api.github.com/repos/pbochis/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbochis/api/labels{/name}","releases_url":"https://api.github.com/repos/pbochis/api/releases{/id}","created_at":"2015-07-01T08:04:27Z","updated_at":"2015-08-03T08:09:24Z","pushed_at":"2015-09-30T13:12:50Z","git_url":"git://github.com/pbochis/api.git","ssh_url":"git@github.com:pbochis/api.git","clone_url":"https://github.com/pbochis/api.git","svn_url":"https://github.com/pbochis/api","homepage":"https://www.cod.uno","size":569,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"coduno:master","ref":"master","sha":"9d403fcacb6e013d0e3409751a567e7eb8b6285d","user":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"repo":{"id":28727808,"name":"api","full_name":"coduno/api","owner":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coduno/api","description":"Coduno API","fork":false,"url":"https://api.github.com/repos/coduno/api","forks_url":"https://api.github.com/repos/coduno/api/forks","keys_url":"https://api.github.com/repos/coduno/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coduno/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coduno/api/teams","hooks_url":"https://api.github.com/repos/coduno/api/hooks","issue_events_url":"https://api.github.com/repos/coduno/api/issues/events{/number}","events_url":"https://api.github.com/repos/coduno/api/events","assignees_url":"https://api.github.com/repos/coduno/api/assignees{/user}","branches_url":"https://api.github.com/repos/coduno/api/branches{/branch}","tags_url":"https://api.github.com/repos/coduno/api/tags","blobs_url":"https://api.github.com/repos/coduno/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coduno/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coduno/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/coduno/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coduno/api/statuses/{sha}","languages_url":"https://api.github.com/repos/coduno/api/languages","stargazers_url":"https://api.github.com/repos/coduno/api/stargazers","contributors_url":"https://api.github.com/repos/coduno/api/contributors","subscribers_url":"https://api.github.com/repos/coduno/api/subscribers","subscription_url":"https://api.github.com/repos/coduno/api/subscription","commits_url":"https://api.github.com/repos/coduno/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/coduno/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/coduno/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/coduno/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/coduno/api/contents/{+path}","compare_url":"https://api.github.com/repos/coduno/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coduno/api/merges","archive_url":"https://api.github.com/repos/coduno/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coduno/api/downloads","issues_url":"https://api.github.com/repos/coduno/api/issues{/number}","pulls_url":"https://api.github.com/repos/coduno/api/pulls{/number}","milestones_url":"https://api.github.com/repos/coduno/api/milestones{/number}","notifications_url":"https://api.github.com/repos/coduno/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coduno/api/labels{/name}","releases_url":"https://api.github.com/repos/coduno/api/releases{/id}","created_at":"2015-01-02T22:08:15Z","updated_at":"2015-08-04T14:24:11Z","pushed_at":"2015-09-30T13:12:50Z","git_url":"git://github.com/coduno/api.git","ssh_url":"git@github.com:coduno/api.git","clone_url":"https://github.com/coduno/api.git","svn_url":"https://github.com/coduno/api","homepage":"https://api.cod.uno","size":1478,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":16,"forks":4,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coduno/api/pulls/97"},"html":{"href":"https://github.com/coduno/api/pull/97"},"issue":{"href":"https://api.github.com/repos/coduno/api/issues/97"},"comments":{"href":"https://api.github.com/repos/coduno/api/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/coduno/api/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/coduno/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coduno/api/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/coduno/api/statuses/4cff69c2eb4086b5a053a92f51eef3b5543d07b9"}}}}