{"action":"opened","issue":{"url":"https://api.github.com/repos/SurveyMonkey/pycobertura/issues/50","labels_url":"https://api.github.com/repos/SurveyMonkey/pycobertura/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/SurveyMonkey/pycobertura/issues/50/comments","events_url":"https://api.github.com/repos/SurveyMonkey/pycobertura/issues/50/events","html_url":"https://github.com/SurveyMonkey/pycobertura/issues/50","id":54262000,"number":50,"title":"fail on uncovered lines or uncovered changes","user":{"login":"aconrad","id":247661,"avatar_url":"https://avatars.githubusercontent.com/u/247661?v=3","gravatar_id":"","url":"https://api.github.com/users/aconrad","html_url":"https://github.com/aconrad","followers_url":"https://api.github.com/users/aconrad/followers","following_url":"https://api.github.com/users/aconrad/following{/other_user}","gists_url":"https://api.github.com/users/aconrad/gists{/gist_id}","starred_url":"https://api.github.com/users/aconrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aconrad/subscriptions","organizations_url":"https://api.github.com/users/aconrad/orgs","repos_url":"https://api.github.com/users/aconrad/repos","events_url":"https://api.github.com/users/aconrad/events{/privacy}","received_events_url":"https://api.github.com/users/aconrad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-13T23:08:58Z","updated_at":"2015-01-13T23:08:58Z","closed_at":null,"body":"Add the ability to fail on uncovered lines or uncovered changes.\r\n\r\n* uncovered lines: if the total number of uncovered lines rose, then fail the build. This would be the default and the \"strict\" version.\r\n* uncovered changes: if a change is not tested (red lines in the diff), then fail the build. Ideally these changes should be covered but if the overall uncovered lines is lower, then the build could already be loosely considered of \"better quality\".\r\n\r\nMaybe we could have a `--fail-on-uncovered` option (or just `--fail-on`) that could take `lines` or `changes`:\r\n\r\n```\r\npycobertura diff --fail-on-uncovered=changes ...\r\npycobertura diff --fail-on-uncovered=lines ...\r\n```"}}