{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/force/issues/259","repository_url":"https://api.github.com/repos/heroku/force","labels_url":"https://api.github.com/repos/heroku/force/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/heroku/force/issues/259/comments","events_url":"https://api.github.com/repos/heroku/force/issues/259/events","html_url":"https://github.com/heroku/force/issues/259","id":134383343,"number":259,"title":"Limit code coverage to \"touched\" classes in the `force test` subcomand.","user":{"login":"joanbarros","id":363861,"avatar_url":"https://avatars.githubusercontent.com/u/363861?v=3","gravatar_id":"","url":"https://api.github.com/users/joanbarros","html_url":"https://github.com/joanbarros","followers_url":"https://api.github.com/users/joanbarros/followers","following_url":"https://api.github.com/users/joanbarros/following{/other_user}","gists_url":"https://api.github.com/users/joanbarros/gists{/gist_id}","starred_url":"https://api.github.com/users/joanbarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joanbarros/subscriptions","organizations_url":"https://api.github.com/users/joanbarros/orgs","repos_url":"https://api.github.com/users/joanbarros/repos","events_url":"https://api.github.com/users/joanbarros/events{/privacy}","received_events_url":"https://api.github.com/users/joanbarros/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/heroku/force/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T19:55:18Z","updated_at":"2016-02-17T20:45:25Z","closed_at":null,"body":"# Problem\r\n\r\nThe current behavior of the command is to display all the classes in the environment and all the test methods in the test class being ran. Something like the example below:\r\n\r\n```\r\nCoverage:\r\n\r\n  0%  Class 1\r\n  80%  Class 2\r\n  100%  Class 3\r\n  100%  Class 4\r\n  0%  Class 5\r\n\r\nResults:\r\n\r\n  [PASS] Some_test_method\r\n```\r\n\r\nThis is ok when you have a couple of dozens of classes but when you have A LOT of classes this begins being a problem. You start seeing that most of the classes listed are in 0% this is because you are running a test class that only affects an isolated part of your codebase.\r\n\r\n## Solution\r\n\r\nThe proposed solution is to hide those classes in which the coverage is 0% and put a flag in place called something like `--all-coverage` if you'd like to see the current behavior."},"comment":{"url":"https://api.github.com/repos/heroku/force/issues/comments/185395980","html_url":"https://github.com/heroku/force/issues/259#issuecomment-185395980","issue_url":"https://api.github.com/repos/heroku/force/issues/259","id":185395980,"user":{"login":"joanbarros","id":363861,"avatar_url":"https://avatars.githubusercontent.com/u/363861?v=3","gravatar_id":"","url":"https://api.github.com/users/joanbarros","html_url":"https://github.com/joanbarros","followers_url":"https://api.github.com/users/joanbarros/followers","following_url":"https://api.github.com/users/joanbarros/following{/other_user}","gists_url":"https://api.github.com/users/joanbarros/gists{/gist_id}","starred_url":"https://api.github.com/users/joanbarros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joanbarros/subscriptions","organizations_url":"https://api.github.com/users/joanbarros/orgs","repos_url":"https://api.github.com/users/joanbarros/repos","events_url":"https://api.github.com/users/joanbarros/events{/privacy}","received_events_url":"https://api.github.com/users/joanbarros/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T20:45:25Z","updated_at":"2016-02-17T20:45:25Z","body":"Ohh and just an FYI, I'm currently working on a pull request for this feature. :)"}}