{"action":"created","issue":{"url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/311","labels_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/311/comments","events_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/311/events","html_url":"https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/311","id":56866982,"number":311,"title":"Automate code coverage validation","user":{"login":"rdiachenko","id":875939,"avatar_url":"https://avatars.githubusercontent.com/u/875939?v=3","gravatar_id":"","url":"https://api.github.com/users/rdiachenko","html_url":"https://github.com/rdiachenko","followers_url":"https://api.github.com/users/rdiachenko/followers","following_url":"https://api.github.com/users/rdiachenko/following{/other_user}","gists_url":"https://api.github.com/users/rdiachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/rdiachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdiachenko/subscriptions","organizations_url":"https://api.github.com/users/rdiachenko/orgs","repos_url":"https://api.github.com/users/rdiachenko/repos","events_url":"https://api.github.com/users/rdiachenko/events{/privacy}","received_events_url":"https://api.github.com/users/rdiachenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-06T20:55:49Z","updated_at":"2015-02-07T22:54:21Z","closed_at":null,"body":"Recently we've received a few pull requests about improving code coverage in the ```sevntu-checks``` module. (See: <a href=\"https://github.com/sevntu-checkstyle/sevntu.checkstyle/pull/307\">one</a>, <a href=\"https://github.com/sevntu-checkstyle/sevntu.checkstyle/pull/306\">two</a>, <a href=\"https://github.com/sevntu-checkstyle/sevntu.checkstyle/pull/305\">three</a> and <a href=\"https://github.com/sevntu-checkstyle/sevntu.checkstyle/pull/304\">four</a>).\r\n\r\nSome of our students/contributors forget to run code coverage tools while writing unit tests. As a result there are a number of condition branches which can be left uncovered.\r\n\r\nTo automate this process consider updating ```sevntu-checks``` build configuration with code coverage validation. It'd be great to have an option like ```percentage_of_code_coverage``` in order so we could control the level of coverage and fail build according to this value."},"comment":{"url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/comments/73387382","html_url":"https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/311#issuecomment-73387382","issue_url":"https://api.github.com/repos/sevntu-checkstyle/sevntu.checkstyle/issues/311","id":73387382,"user":{"login":"damianszczepanik","id":9612911,"avatar_url":"https://avatars.githubusercontent.com/u/9612911?v=3","gravatar_id":"","url":"https://api.github.com/users/damianszczepanik","html_url":"https://github.com/damianszczepanik","followers_url":"https://api.github.com/users/damianszczepanik/followers","following_url":"https://api.github.com/users/damianszczepanik/following{/other_user}","gists_url":"https://api.github.com/users/damianszczepanik/gists{/gist_id}","starred_url":"https://api.github.com/users/damianszczepanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianszczepanik/subscriptions","organizations_url":"https://api.github.com/users/damianszczepanik/orgs","repos_url":"https://api.github.com/users/damianszczepanik/repos","events_url":"https://api.github.com/users/damianszczepanik/events{/privacy}","received_events_url":"https://api.github.com/users/damianszczepanik/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T22:54:21Z","updated_at":"2015-02-07T22:54:21Z","body":"I will take it.\r\n\r\nI also came up with the idea how to increase coverage by eliminating duplicate lines. More details #308 but I need advice where is the best place for that utility function."}}