{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/115","labels_url":"https://api.github.com/repos/sindresorhus/ava/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ava/issues/115/comments","events_url":"https://api.github.com/repos/sindresorhus/ava/issues/115/events","html_url":"https://github.com/sindresorhus/ava/issues/115","id":114422840,"number":115,"title":"Only run tests for changed code","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/ava/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/sindresorhus/ava/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-31T17:30:20Z","updated_at":"2015-11-02T20:11:08Z","closed_at":null,"body":"Many times you only change code that affects one or a few tests, but still have to suffer through the whole test suite. Would be nice to only run the affected tests instead. This would be a huge win for people with lots of tests.\r\n\r\nThis is easy on a test file level as we can just recurse the dependency tree and see which test files depend on the changed file. It gets harder for individual tests. Here we could take advantage of code coverage, diff what's changed between runs, and check which lines were affected.\r\n\r\n###### Prior art\r\n\r\n- http://dm.gl/2015/01/30/wallaby/\r\n- https://github.com/Genki-S/ttnt\r\n- http://cherrie.io\r\n\r\n-\r\n\r\nThis is not something that is likely to come in the short term, but opening for discussion and brainstorming. Help making this happen more than welcome."},"comment":{"url":"https://api.github.com/repos/sindresorhus/ava/issues/comments/153143221","html_url":"https://github.com/sindresorhus/ava/issues/115#issuecomment-153143221","issue_url":"https://api.github.com/repos/sindresorhus/ava/issues/115","id":153143221,"user":{"login":"Qix-","id":885648,"avatar_url":"https://avatars.githubusercontent.com/u/885648?v=3","gravatar_id":"","url":"https://api.github.com/users/Qix-","html_url":"https://github.com/Qix-","followers_url":"https://api.github.com/users/Qix-/followers","following_url":"https://api.github.com/users/Qix-/following{/other_user}","gists_url":"https://api.github.com/users/Qix-/gists{/gist_id}","starred_url":"https://api.github.com/users/Qix-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qix-/subscriptions","organizations_url":"https://api.github.com/users/Qix-/orgs","repos_url":"https://api.github.com/users/Qix-/repos","events_url":"https://api.github.com/users/Qix-/events{/privacy}","received_events_url":"https://api.github.com/users/Qix-/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T20:11:08Z","updated_at":"2015-11-02T20:11:08Z","body":"@schnittstabil not quite sure what you mean there."}}