{"action":"created","comment":{"url":"https://api.github.com/repos/lpil/mix-test.watch/pulls/comments/52828594","id":52828594,"diff_hunk":"@@ -0,0 +1,34 @@\n+defmodule MixTestWatch.FilesTest do\n+  use ExUnit.Case\n+  import MixTestWatch.MockFsHelper","path":"test/mix_test_watch/files_test.exs","position":3,"original_position":3,"commit_id":"85316583df8745728603378d26685da41002c1ab","original_commit_id":"85316583df8745728603378d26685da41002c1ab","user":{"login":"lpil","id":6134406,"avatar_url":"https://avatars.githubusercontent.com/u/6134406?v=3","gravatar_id":"","url":"https://api.github.com/users/lpil","html_url":"https://github.com/lpil","followers_url":"https://api.github.com/users/lpil/followers","following_url":"https://api.github.com/users/lpil/following{/other_user}","gists_url":"https://api.github.com/users/lpil/gists{/gist_id}","starred_url":"https://api.github.com/users/lpil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpil/subscriptions","organizations_url":"https://api.github.com/users/lpil/orgs","repos_url":"https://api.github.com/users/lpil/repos","events_url":"https://api.github.com/users/lpil/events{/privacy}","received_events_url":"https://api.github.com/users/lpil/received_events","type":"User","site_admin":false},"body":"Favour alias over import","created_at":"2016-02-13T14:32:49Z","updated_at":"2016-02-13T14:32:49Z","html_url":"https://github.com/lpil/mix-test.watch/pull/21#discussion_r52828594","pull_request_url":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/lpil/mix-test.watch/pulls/comments/52828594"},"html":{"href":"https://github.com/lpil/mix-test.watch/pull/21#discussion_r52828594"},"pull_request":{"href":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21","id":58934060,"html_url":"https://github.com/lpil/mix-test.watch/pull/21","diff_url":"https://github.com/lpil/mix-test.watch/pull/21.diff","patch_url":"https://github.com/lpil/mix-test.watch/pull/21.patch","issue_url":"https://api.github.com/repos/lpil/mix-test.watch/issues/21","number":21,"state":"closed","locked":false,"title":"on file change run single test first","user":{"login":"niklas","id":9176,"avatar_url":"https://avatars.githubusercontent.com/u/9176?v=3","gravatar_id":"","url":"https://api.github.com/users/niklas","html_url":"https://github.com/niklas","followers_url":"https://api.github.com/users/niklas/followers","following_url":"https://api.github.com/users/niklas/following{/other_user}","gists_url":"https://api.github.com/users/niklas/gists{/gist_id}","starred_url":"https://api.github.com/users/niklas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklas/subscriptions","organizations_url":"https://api.github.com/users/niklas/orgs","repos_url":"https://api.github.com/users/niklas/repos","events_url":"https://api.github.com/users/niklas/events{/privacy}","received_events_url":"https://api.github.com/users/niklas/received_events","type":"User","site_admin":false},"body":"When a watched test file is changed, run it with mix test. If the unix\r\nerror code is 0 (successful), run the complete suite.\r\nWhen the file is not in the test directory, try to find a corresponding\r\ntest file following elixir conventions and run that instead.\r\n\r\nThis should speed up TDD extremely. Resolves lpil/mix-test.watch#12.\r\n\r\n\r\nPS: I am new to elixir, so I might have missed some idioms. :angel: :goat: ","created_at":"2016-02-10T18:42:01Z","updated_at":"2016-02-13T14:32:49Z","closed_at":"2016-02-13T14:12:53Z","merged_at":"2016-02-13T14:12:53Z","merge_commit_sha":"320fd880aa8b0d674c0e7a7de8c9007fc4dfb747","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21/commits","review_comments_url":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21/comments","review_comment_url":"https://api.github.com/repos/lpil/mix-test.watch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lpil/mix-test.watch/issues/21/comments","statuses_url":"https://api.github.com/repos/lpil/mix-test.watch/statuses/85316583df8745728603378d26685da41002c1ab","head":{"label":"niklas:feature/single-file-first","ref":"feature/single-file-first","sha":"85316583df8745728603378d26685da41002c1ab","user":{"login":"niklas","id":9176,"avatar_url":"https://avatars.githubusercontent.com/u/9176?v=3","gravatar_id":"","url":"https://api.github.com/users/niklas","html_url":"https://github.com/niklas","followers_url":"https://api.github.com/users/niklas/followers","following_url":"https://api.github.com/users/niklas/following{/other_user}","gists_url":"https://api.github.com/users/niklas/gists{/gist_id}","starred_url":"https://api.github.com/users/niklas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklas/subscriptions","organizations_url":"https://api.github.com/users/niklas/orgs","repos_url":"https://api.github.com/users/niklas/repos","events_url":"https://api.github.com/users/niklas/events{/privacy}","received_events_url":"https://api.github.com/users/niklas/received_events","type":"User","site_admin":false},"repo":{"id":51460329,"name":"mix-test.watch","full_name":"niklas/mix-test.watch","owner":{"login":"niklas","id":9176,"avatar_url":"https://avatars.githubusercontent.com/u/9176?v=3","gravatar_id":"","url":"https://api.github.com/users/niklas","html_url":"https://github.com/niklas","followers_url":"https://api.github.com/users/niklas/followers","following_url":"https://api.github.com/users/niklas/following{/other_user}","gists_url":"https://api.github.com/users/niklas/gists{/gist_id}","starred_url":"https://api.github.com/users/niklas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklas/subscriptions","organizations_url":"https://api.github.com/users/niklas/orgs","repos_url":"https://api.github.com/users/niklas/repos","events_url":"https://api.github.com/users/niklas/events{/privacy}","received_events_url":"https://api.github.com/users/niklas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niklas/mix-test.watch","description":"Because TDD is awesome.","fork":true,"url":"https://api.github.com/repos/niklas/mix-test.watch","forks_url":"https://api.github.com/repos/niklas/mix-test.watch/forks","keys_url":"https://api.github.com/repos/niklas/mix-test.watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niklas/mix-test.watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niklas/mix-test.watch/teams","hooks_url":"https://api.github.com/repos/niklas/mix-test.watch/hooks","issue_events_url":"https://api.github.com/repos/niklas/mix-test.watch/issues/events{/number}","events_url":"https://api.github.com/repos/niklas/mix-test.watch/events","assignees_url":"https://api.github.com/repos/niklas/mix-test.watch/assignees{/user}","branches_url":"https://api.github.com/repos/niklas/mix-test.watch/branches{/branch}","tags_url":"https://api.github.com/repos/niklas/mix-test.watch/tags","blobs_url":"https://api.github.com/repos/niklas/mix-test.watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niklas/mix-test.watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niklas/mix-test.watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/niklas/mix-test.watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niklas/mix-test.watch/statuses/{sha}","languages_url":"https://api.github.com/repos/niklas/mix-test.watch/languages","stargazers_url":"https://api.github.com/repos/niklas/mix-test.watch/stargazers","contributors_url":"https://api.github.com/repos/niklas/mix-test.watch/contributors","subscribers_url":"https://api.github.com/repos/niklas/mix-test.watch/subscribers","subscription_url":"https://api.github.com/repos/niklas/mix-test.watch/subscription","commits_url":"https://api.github.com/repos/niklas/mix-test.watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/niklas/mix-test.watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/niklas/mix-test.watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/niklas/mix-test.watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/niklas/mix-test.watch/contents/{+path}","compare_url":"https://api.github.com/repos/niklas/mix-test.watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niklas/mix-test.watch/merges","archive_url":"https://api.github.com/repos/niklas/mix-test.watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niklas/mix-test.watch/downloads","issues_url":"https://api.github.com/repos/niklas/mix-test.watch/issues{/number}","pulls_url":"https://api.github.com/repos/niklas/mix-test.watch/pulls{/number}","milestones_url":"https://api.github.com/repos/niklas/mix-test.watch/milestones{/number}","notifications_url":"https://api.github.com/repos/niklas/mix-test.watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niklas/mix-test.watch/labels{/name}","releases_url":"https://api.github.com/repos/niklas/mix-test.watch/releases{/id}","deployments_url":"https://api.github.com/repos/niklas/mix-test.watch/deployments","created_at":"2016-02-10T18:06:25Z","updated_at":"2016-02-10T18:06:26Z","pushed_at":"2016-02-13T02:54:47Z","git_url":"git://github.com/niklas/mix-test.watch.git","ssh_url":"git@github.com:niklas/mix-test.watch.git","clone_url":"https://github.com/niklas/mix-test.watch.git","svn_url":"https://github.com/niklas/mix-test.watch","homepage":"","size":49,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"lpil:master","ref":"master","sha":"f473c9e6be4a8e51474cb3cab6f36c4c78c950ba","user":{"login":"lpil","id":6134406,"avatar_url":"https://avatars.githubusercontent.com/u/6134406?v=3","gravatar_id":"","url":"https://api.github.com/users/lpil","html_url":"https://github.com/lpil","followers_url":"https://api.github.com/users/lpil/followers","following_url":"https://api.github.com/users/lpil/following{/other_user}","gists_url":"https://api.github.com/users/lpil/gists{/gist_id}","starred_url":"https://api.github.com/users/lpil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpil/subscriptions","organizations_url":"https://api.github.com/users/lpil/orgs","repos_url":"https://api.github.com/users/lpil/repos","events_url":"https://api.github.com/users/lpil/events{/privacy}","received_events_url":"https://api.github.com/users/lpil/received_events","type":"User","site_admin":false},"repo":{"id":34422016,"name":"mix-test.watch","full_name":"lpil/mix-test.watch","owner":{"login":"lpil","id":6134406,"avatar_url":"https://avatars.githubusercontent.com/u/6134406?v=3","gravatar_id":"","url":"https://api.github.com/users/lpil","html_url":"https://github.com/lpil","followers_url":"https://api.github.com/users/lpil/followers","following_url":"https://api.github.com/users/lpil/following{/other_user}","gists_url":"https://api.github.com/users/lpil/gists{/gist_id}","starred_url":"https://api.github.com/users/lpil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpil/subscriptions","organizations_url":"https://api.github.com/users/lpil/orgs","repos_url":"https://api.github.com/users/lpil/repos","events_url":"https://api.github.com/users/lpil/events{/privacy}","received_events_url":"https://api.github.com/users/lpil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lpil/mix-test.watch","description":"Because TDD is awesome.","fork":false,"url":"https://api.github.com/repos/lpil/mix-test.watch","forks_url":"https://api.github.com/repos/lpil/mix-test.watch/forks","keys_url":"https://api.github.com/repos/lpil/mix-test.watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lpil/mix-test.watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lpil/mix-test.watch/teams","hooks_url":"https://api.github.com/repos/lpil/mix-test.watch/hooks","issue_events_url":"https://api.github.com/repos/lpil/mix-test.watch/issues/events{/number}","events_url":"https://api.github.com/repos/lpil/mix-test.watch/events","assignees_url":"https://api.github.com/repos/lpil/mix-test.watch/assignees{/user}","branches_url":"https://api.github.com/repos/lpil/mix-test.watch/branches{/branch}","tags_url":"https://api.github.com/repos/lpil/mix-test.watch/tags","blobs_url":"https://api.github.com/repos/lpil/mix-test.watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lpil/mix-test.watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lpil/mix-test.watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/lpil/mix-test.watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lpil/mix-test.watch/statuses/{sha}","languages_url":"https://api.github.com/repos/lpil/mix-test.watch/languages","stargazers_url":"https://api.github.com/repos/lpil/mix-test.watch/stargazers","contributors_url":"https://api.github.com/repos/lpil/mix-test.watch/contributors","subscribers_url":"https://api.github.com/repos/lpil/mix-test.watch/subscribers","subscription_url":"https://api.github.com/repos/lpil/mix-test.watch/subscription","commits_url":"https://api.github.com/repos/lpil/mix-test.watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/lpil/mix-test.watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/lpil/mix-test.watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/lpil/mix-test.watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/lpil/mix-test.watch/contents/{+path}","compare_url":"https://api.github.com/repos/lpil/mix-test.watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lpil/mix-test.watch/merges","archive_url":"https://api.github.com/repos/lpil/mix-test.watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lpil/mix-test.watch/downloads","issues_url":"https://api.github.com/repos/lpil/mix-test.watch/issues{/number}","pulls_url":"https://api.github.com/repos/lpil/mix-test.watch/pulls{/number}","milestones_url":"https://api.github.com/repos/lpil/mix-test.watch/milestones{/number}","notifications_url":"https://api.github.com/repos/lpil/mix-test.watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lpil/mix-test.watch/labels{/name}","releases_url":"https://api.github.com/repos/lpil/mix-test.watch/releases{/id}","deployments_url":"https://api.github.com/repos/lpil/mix-test.watch/deployments","created_at":"2015-04-22T23:35:00Z","updated_at":"2016-02-13T09:51:15Z","pushed_at":"2016-02-13T14:25:31Z","git_url":"git://github.com/lpil/mix-test.watch.git","ssh_url":"git@github.com:lpil/mix-test.watch.git","clone_url":"https://github.com/lpil/mix-test.watch.git","svn_url":"https://github.com/lpil/mix-test.watch","homepage":"","size":53,"stargazers_count":78,"watchers_count":78,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":6,"forks":14,"open_issues":6,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21"},"html":{"href":"https://github.com/lpil/mix-test.watch/pull/21"},"issue":{"href":"https://api.github.com/repos/lpil/mix-test.watch/issues/21"},"comments":{"href":"https://api.github.com/repos/lpil/mix-test.watch/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/lpil/mix-test.watch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lpil/mix-test.watch/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/lpil/mix-test.watch/statuses/85316583df8745728603378d26685da41002c1ab"}}}}