{"action":"created","comment":{"url":"https://api.github.com/repos/junit-team/junit4/pulls/comments/95065132","pull_request_review_id":15611562,"id":95065132,"diff_hunk":"@@ -0,0 +1,26 @@\n+package org.junit.runner;\n+\n+import java.lang.annotation.ElementType;\n+import java.lang.annotation.Inherited;\n+import java.lang.annotation.Retention;\n+import java.lang.annotation.RetentionPolicy;\n+import java.lang.annotation.Target;\n+\n+import org.junit.runner.manipulation.Ordering;\n+\n+/**\n+ * When a test class is annotated with <code>&#064;OrderWith</code> or extends a class annotated\n+ * with <code>&#064;OrderWith</code>, JUnit will order the tests in the test class (and child\n+ * test classes, if any) using the ordering defined by the {@link Ordering} class.\n+ *\n+ * @since 4.13\n+ */\n+@Retention(RetentionPolicy.RUNTIME)\n+@Target(ElementType.TYPE)\n+@Inherited\n+public @interface OrderWith {","path":"src/main/java/org/junit/runner/OrderWith.java","position":21,"original_position":21,"commit_id":"b8de5b2be7b3f08a91314cbbc0a0883896c82aab","original_commit_id":"e68c0159d92b5306783a50713ef35b0b539e58c5","user":{"login":"kcooney","id":478190,"avatar_url":"https://avatars.githubusercontent.com/u/478190?v=3","gravatar_id":"","url":"https://api.github.com/users/kcooney","html_url":"https://github.com/kcooney","followers_url":"https://api.github.com/users/kcooney/followers","following_url":"https://api.github.com/users/kcooney/following{/other_user}","gists_url":"https://api.github.com/users/kcooney/gists{/gist_id}","starred_url":"https://api.github.com/users/kcooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcooney/subscriptions","organizations_url":"https://api.github.com/users/kcooney/orgs","repos_url":"https://api.github.com/users/kcooney/repos","events_url":"https://api.github.com/users/kcooney/events{/privacy}","received_events_url":"https://api.github.com/users/kcooney/received_events","type":"User","site_admin":false},"body":"Sorry for the long delay, but I hope that we can release JUnit 4.13 in 2017 and I'd like to include this pull.\r\n\r\nI updated the code to pass a context object that allows you to access the top-level description\r\nof the class annotated with `@OrderWith`. This will handle David's use-case of \" run the tests from the fastest to the slowest, based on a record of previous runtimes kept in a file\". The filename could\r\neither be specified as an annotation on the class annotated with `@OrderWith` or it could be\r\nderived from the class name of the class annotated with `@OrderWith`","created_at":"2017-01-07T20:20:56Z","updated_at":"2017-01-07T20:20:56Z","html_url":"https://github.com/junit-team/junit4/pull/1130#discussion_r95065132","pull_request_url":"https://api.github.com/repos/junit-team/junit4/pulls/1130","_links":{"self":{"href":"https://api.github.com/repos/junit-team/junit4/pulls/comments/95065132"},"html":{"href":"https://github.com/junit-team/junit4/pull/1130#discussion_r95065132"},"pull_request":{"href":"https://api.github.com/repos/junit-team/junit4/pulls/1130"}}},"pull_request":{"url":"https://api.github.com/repos/junit-team/junit4/pulls/1130","id":34110071,"html_url":"https://github.com/junit-team/junit4/pull/1130","diff_url":"https://github.com/junit-team/junit4/pull/1130.diff","patch_url":"https://github.com/junit-team/junit4/pull/1130.patch","issue_url":"https://api.github.com/repos/junit-team/junit4/issues/1130","number":1130,"state":"open","locked":false,"title":"Add Ordering, Orderable and @OrderWith","user":{"login":"kcooney","id":478190,"avatar_url":"https://avatars.githubusercontent.com/u/478190?v=3","gravatar_id":"","url":"https://api.github.com/users/kcooney","html_url":"https://github.com/kcooney","followers_url":"https://api.github.com/users/kcooney/followers","following_url":"https://api.github.com/users/kcooney/following{/other_user}","gists_url":"https://api.github.com/users/kcooney/gists{/gist_id}","starred_url":"https://api.github.com/users/kcooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcooney/subscriptions","organizations_url":"https://api.github.com/users/kcooney/orgs","repos_url":"https://api.github.com/users/kcooney/repos","events_url":"https://api.github.com/users/kcooney/events{/privacy}","received_events_url":"https://api.github.com/users/kcooney/received_events","type":"User","site_admin":false},"body":"These APIs allow arbitrary ordering of tests, including randomization.\n","created_at":"2015-04-25T17:46:40Z","updated_at":"2017-01-07T20:20:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd3462cfd33e9495651859d6204c77bd401f69a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/junit-team/junit4/pulls/1130/commits","review_comments_url":"https://api.github.com/repos/junit-team/junit4/pulls/1130/comments","review_comment_url":"https://api.github.com/repos/junit-team/junit4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/junit-team/junit4/issues/1130/comments","statuses_url":"https://api.github.com/repos/junit-team/junit4/statuses/b8de5b2be7b3f08a91314cbbc0a0883896c82aab","head":{"label":"kcooney:ordering","ref":"ordering","sha":"b8de5b2be7b3f08a91314cbbc0a0883896c82aab","user":{"login":"kcooney","id":478190,"avatar_url":"https://avatars.githubusercontent.com/u/478190?v=3","gravatar_id":"","url":"https://api.github.com/users/kcooney","html_url":"https://github.com/kcooney","followers_url":"https://api.github.com/users/kcooney/followers","following_url":"https://api.github.com/users/kcooney/following{/other_user}","gists_url":"https://api.github.com/users/kcooney/gists{/gist_id}","starred_url":"https://api.github.com/users/kcooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcooney/subscriptions","organizations_url":"https://api.github.com/users/kcooney/orgs","repos_url":"https://api.github.com/users/kcooney/repos","events_url":"https://api.github.com/users/kcooney/events{/privacy}","received_events_url":"https://api.github.com/users/kcooney/received_events","type":"User","site_admin":false},"repo":{"id":4526999,"name":"junit","full_name":"kcooney/junit","owner":{"login":"kcooney","id":478190,"avatar_url":"https://avatars.githubusercontent.com/u/478190?v=3","gravatar_id":"","url":"https://api.github.com/users/kcooney","html_url":"https://github.com/kcooney","followers_url":"https://api.github.com/users/kcooney/followers","following_url":"https://api.github.com/users/kcooney/following{/other_user}","gists_url":"https://api.github.com/users/kcooney/gists{/gist_id}","starred_url":"https://api.github.com/users/kcooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcooney/subscriptions","organizations_url":"https://api.github.com/users/kcooney/orgs","repos_url":"https://api.github.com/users/kcooney/repos","events_url":"https://api.github.com/users/kcooney/events{/privacy}","received_events_url":"https://api.github.com/users/kcooney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kcooney/junit","description":"A programmer-oriented testing framework for Java.","fork":true,"url":"https://api.github.com/repos/kcooney/junit","forks_url":"https://api.github.com/repos/kcooney/junit/forks","keys_url":"https://api.github.com/repos/kcooney/junit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kcooney/junit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kcooney/junit/teams","hooks_url":"https://api.github.com/repos/kcooney/junit/hooks","issue_events_url":"https://api.github.com/repos/kcooney/junit/issues/events{/number}","events_url":"https://api.github.com/repos/kcooney/junit/events","assignees_url":"https://api.github.com/repos/kcooney/junit/assignees{/user}","branches_url":"https://api.github.com/repos/kcooney/junit/branches{/branch}","tags_url":"https://api.github.com/repos/kcooney/junit/tags","blobs_url":"https://api.github.com/repos/kcooney/junit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kcooney/junit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kcooney/junit/git/refs{/sha}","trees_url":"https://api.github.com/repos/kcooney/junit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kcooney/junit/statuses/{sha}","languages_url":"https://api.github.com/repos/kcooney/junit/languages","stargazers_url":"https://api.github.com/repos/kcooney/junit/stargazers","contributors_url":"https://api.github.com/repos/kcooney/junit/contributors","subscribers_url":"https://api.github.com/repos/kcooney/junit/subscribers","subscription_url":"https://api.github.com/repos/kcooney/junit/subscription","commits_url":"https://api.github.com/repos/kcooney/junit/commits{/sha}","git_commits_url":"https://api.github.com/repos/kcooney/junit/git/commits{/sha}","comments_url":"https://api.github.com/repos/kcooney/junit/comments{/number}","issue_comment_url":"https://api.github.com/repos/kcooney/junit/issues/comments{/number}","contents_url":"https://api.github.com/repos/kcooney/junit/contents/{+path}","compare_url":"https://api.github.com/repos/kcooney/junit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kcooney/junit/merges","archive_url":"https://api.github.com/repos/kcooney/junit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kcooney/junit/downloads","issues_url":"https://api.github.com/repos/kcooney/junit/issues{/number}","pulls_url":"https://api.github.com/repos/kcooney/junit/pulls{/number}","milestones_url":"https://api.github.com/repos/kcooney/junit/milestones{/number}","notifications_url":"https://api.github.com/repos/kcooney/junit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kcooney/junit/labels{/name}","releases_url":"https://api.github.com/repos/kcooney/junit/releases{/id}","deployments_url":"https://api.github.com/repos/kcooney/junit/deployments","created_at":"2012-06-02T05:11:35Z","updated_at":"2015-03-01T17:22:24Z","pushed_at":"2017-01-07T20:20:10Z","git_url":"git://github.com/kcooney/junit.git","ssh_url":"git@github.com:kcooney/junit.git","clone_url":"https://github.com/kcooney/junit.git","svn_url":"https://github.com/kcooney/junit","homepage":"www.junit.org","size":9013,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"junit-team:master","ref":"master","sha":"c85c6147ada5ad1afdd3be10769670d309730132","user":{"login":"junit-team","id":874086,"avatar_url":"https://avatars.githubusercontent.com/u/874086?v=3","gravatar_id":"","url":"https://api.github.com/users/junit-team","html_url":"https://github.com/junit-team","followers_url":"https://api.github.com/users/junit-team/followers","following_url":"https://api.github.com/users/junit-team/following{/other_user}","gists_url":"https://api.github.com/users/junit-team/gists{/gist_id}","starred_url":"https://api.github.com/users/junit-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junit-team/subscriptions","organizations_url":"https://api.github.com/users/junit-team/orgs","repos_url":"https://api.github.com/users/junit-team/repos","events_url":"https://api.github.com/users/junit-team/events{/privacy}","received_events_url":"https://api.github.com/users/junit-team/received_events","type":"Organization","site_admin":false},"repo":{"id":106310,"name":"junit4","full_name":"junit-team/junit4","owner":{"login":"junit-team","id":874086,"avatar_url":"https://avatars.githubusercontent.com/u/874086?v=3","gravatar_id":"","url":"https://api.github.com/users/junit-team","html_url":"https://github.com/junit-team","followers_url":"https://api.github.com/users/junit-team/followers","following_url":"https://api.github.com/users/junit-team/following{/other_user}","gists_url":"https://api.github.com/users/junit-team/gists{/gist_id}","starred_url":"https://api.github.com/users/junit-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junit-team/subscriptions","organizations_url":"https://api.github.com/users/junit-team/orgs","repos_url":"https://api.github.com/users/junit-team/repos","events_url":"https://api.github.com/users/junit-team/events{/privacy}","received_events_url":"https://api.github.com/users/junit-team/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/junit-team/junit4","description":"A programmer-oriented testing framework for Java.","fork":false,"url":"https://api.github.com/repos/junit-team/junit4","forks_url":"https://api.github.com/repos/junit-team/junit4/forks","keys_url":"https://api.github.com/repos/junit-team/junit4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junit-team/junit4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junit-team/junit4/teams","hooks_url":"https://api.github.com/repos/junit-team/junit4/hooks","issue_events_url":"https://api.github.com/repos/junit-team/junit4/issues/events{/number}","events_url":"https://api.github.com/repos/junit-team/junit4/events","assignees_url":"https://api.github.com/repos/junit-team/junit4/assignees{/user}","branches_url":"https://api.github.com/repos/junit-team/junit4/branches{/branch}","tags_url":"https://api.github.com/repos/junit-team/junit4/tags","blobs_url":"https://api.github.com/repos/junit-team/junit4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junit-team/junit4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junit-team/junit4/git/refs{/sha}","trees_url":"https://api.github.com/repos/junit-team/junit4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junit-team/junit4/statuses/{sha}","languages_url":"https://api.github.com/repos/junit-team/junit4/languages","stargazers_url":"https://api.github.com/repos/junit-team/junit4/stargazers","contributors_url":"https://api.github.com/repos/junit-team/junit4/contributors","subscribers_url":"https://api.github.com/repos/junit-team/junit4/subscribers","subscription_url":"https://api.github.com/repos/junit-team/junit4/subscription","commits_url":"https://api.github.com/repos/junit-team/junit4/commits{/sha}","git_commits_url":"https://api.github.com/repos/junit-team/junit4/git/commits{/sha}","comments_url":"https://api.github.com/repos/junit-team/junit4/comments{/number}","issue_comment_url":"https://api.github.com/repos/junit-team/junit4/issues/comments{/number}","contents_url":"https://api.github.com/repos/junit-team/junit4/contents/{+path}","compare_url":"https://api.github.com/repos/junit-team/junit4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junit-team/junit4/merges","archive_url":"https://api.github.com/repos/junit-team/junit4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junit-team/junit4/downloads","issues_url":"https://api.github.com/repos/junit-team/junit4/issues{/number}","pulls_url":"https://api.github.com/repos/junit-team/junit4/pulls{/number}","milestones_url":"https://api.github.com/repos/junit-team/junit4/milestones{/number}","notifications_url":"https://api.github.com/repos/junit-team/junit4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junit-team/junit4/labels{/name}","releases_url":"https://api.github.com/repos/junit-team/junit4/releases{/id}","deployments_url":"https://api.github.com/repos/junit-team/junit4/deployments","created_at":"2009-01-13T03:41:26Z","updated_at":"2017-01-07T19:19:07Z","pushed_at":"2017-01-07T20:20:11Z","git_url":"git://github.com/junit-team/junit4.git","ssh_url":"git@github.com:junit-team/junit4.git","clone_url":"https://github.com/junit-team/junit4.git","svn_url":"https://github.com/junit-team/junit4","homepage":"http://junit.org/junit4/","size":21951,"stargazers_count":5583,"watchers_count":5583,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2176,"mirror_url":null,"open_issues_count":144,"forks":2176,"open_issues":144,"watchers":5583,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/junit-team/junit4/pulls/1130"},"html":{"href":"https://github.com/junit-team/junit4/pull/1130"},"issue":{"href":"https://api.github.com/repos/junit-team/junit4/issues/1130"},"comments":{"href":"https://api.github.com/repos/junit-team/junit4/issues/1130/comments"},"review_comments":{"href":"https://api.github.com/repos/junit-team/junit4/pulls/1130/comments"},"review_comment":{"href":"https://api.github.com/repos/junit-team/junit4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/junit-team/junit4/pulls/1130/commits"},"statuses":{"href":"https://api.github.com/repos/junit-team/junit4/statuses/b8de5b2be7b3f08a91314cbbc0a0883896c82aab"}}}}
{"actor":{"display_login":"kcooney"}}