{"action":"opened","issue":{"url":"https://api.github.com/repos/jacoco/jacoco/issues/324","labels_url":"https://api.github.com/repos/jacoco/jacoco/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/jacoco/jacoco/issues/324/comments","events_url":"https://api.github.com/repos/jacoco/jacoco/issues/324/events","html_url":"https://github.com/jacoco/jacoco/issues/324","id":87731728,"number":324,"title":"Accounting of assert statements","user":{"login":"Dridi","id":891744,"avatar_url":"https://avatars.githubusercontent.com/u/891744?v=3","gravatar_id":"","url":"https://api.github.com/users/Dridi","html_url":"https://github.com/Dridi","followers_url":"https://api.github.com/users/Dridi/followers","following_url":"https://api.github.com/users/Dridi/following{/other_user}","gists_url":"https://api.github.com/users/Dridi/gists{/gist_id}","starred_url":"https://api.github.com/users/Dridi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dridi/subscriptions","organizations_url":"https://api.github.com/users/Dridi/orgs","repos_url":"https://api.github.com/users/Dridi/repos","events_url":"https://api.github.com/users/Dridi/events{/privacy}","received_events_url":"https://api.github.com/users/Dridi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-12T13:37:07Z","updated_at":"2015-06-12T13:37:07Z","closed_at":null,"body":"I'm using jacoco with @SonarSource's sonarqube and one thing that bothers me is the actual accounting of `assert` statements in coverage reports.\r\n\r\nThey basically get a 100% line coverage, and 50% branch coverage.\r\n\r\nBoth metrics don't make sense since assert are not supposed to have any side effect, and thus do anything useful. You also don't want a 100% branch coverage, since it means corrupted state. And of course you can disable them at run time.\r\n\r\nThey should not be treated as code instructions.\r\n\r\nOther than that, jacoco rocks!"}}