{"action":"created","issue":{"url":"https://api.github.com/repos/schlamar/pytest-cov/issues/43","labels_url":"https://api.github.com/repos/schlamar/pytest-cov/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/schlamar/pytest-cov/issues/43/comments","events_url":"https://api.github.com/repos/schlamar/pytest-cov/issues/43/events","html_url":"https://github.com/schlamar/pytest-cov/issues/43","id":54799887,"number":43,"title":"function declarations and comments are not marked as covered","user":{"login":"ssbarnea","id":102495,"avatar_url":"https://avatars.githubusercontent.com/u/102495?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbarnea","html_url":"https://github.com/ssbarnea","followers_url":"https://api.github.com/users/ssbarnea/followers","following_url":"https://api.github.com/users/ssbarnea/following{/other_user}","gists_url":"https://api.github.com/users/ssbarnea/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbarnea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbarnea/subscriptions","organizations_url":"https://api.github.com/users/ssbarnea/orgs","repos_url":"https://api.github.com/users/ssbarnea/repos","events_url":"https://api.github.com/users/ssbarnea/events{/privacy}","received_events_url":"https://api.github.com/users/ssbarnea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-19T18:57:41Z","updated_at":"2015-01-19T21:55:04Z","closed_at":"2015-01-19T21:55:04Z","body":"Initially I assumed that is a bug in Coveralls but it seems that I managed to discover a strange bug which makes coverage tool to improperly mark functions or comments as not covered.\r\n\r\nPlease take a look at http://stackoverflow.com/questions/28024496/why-coveralls-does-report-the-function-or-methods-as-not-covered-when-body-is-co?noredirect=1#comment44434661_28024496 and https://coveralls.io/files/431523503#L433\r\n\r\nThe project is tested from Travis CI and the coverage parameters are loaded at runtime, see https://github.com/pycontribs/jira/blob/master/setup.py#L47\r\n\r\nSo to run it with coverage you only have to do: `python setup.py test`\r\n\r\nWhy is does behave like this and how to solve the problem? Thanks."},"comment":{"url":"https://api.github.com/repos/schlamar/pytest-cov/issues/comments/70568175","html_url":"https://github.com/schlamar/pytest-cov/issues/43#issuecomment-70568175","issue_url":"https://api.github.com/repos/schlamar/pytest-cov/issues/43","id":70568175,"user":{"login":"schlamar","id":238652,"avatar_url":"https://avatars.githubusercontent.com/u/238652?v=3","gravatar_id":"","url":"https://api.github.com/users/schlamar","html_url":"https://github.com/schlamar","followers_url":"https://api.github.com/users/schlamar/followers","following_url":"https://api.github.com/users/schlamar/following{/other_user}","gists_url":"https://api.github.com/users/schlamar/gists{/gist_id}","starred_url":"https://api.github.com/users/schlamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schlamar/subscriptions","organizations_url":"https://api.github.com/users/schlamar/orgs","repos_url":"https://api.github.com/users/schlamar/repos","events_url":"https://api.github.com/users/schlamar/events{/privacy}","received_events_url":"https://api.github.com/users/schlamar/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T21:55:04Z","updated_at":"2015-01-19T21:55:04Z","body":"This is a usage error. You import from \"jira\" in setup.py before pytest-cov and therefore coverage measurement is active..."}}