{"action":"created","issue":{"url":"https://api.github.com/repos/codecov/support/issues/292","repository_url":"https://api.github.com/repos/codecov/support","labels_url":"https://api.github.com/repos/codecov/support/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/codecov/support/issues/292/comments","events_url":"https://api.github.com/repos/codecov/support/issues/292/events","html_url":"https://github.com/codecov/support/issues/292","id":177316475,"number":292,"title":"Count unused files","user":{"login":"anderspitman","id":7820200,"avatar_url":"https://avatars.githubusercontent.com/u/7820200?v=3","gravatar_id":"","url":"https://api.github.com/users/anderspitman","html_url":"https://github.com/anderspitman","followers_url":"https://api.github.com/users/anderspitman/followers","following_url":"https://api.github.com/users/anderspitman/following{/other_user}","gists_url":"https://api.github.com/users/anderspitman/gists{/gist_id}","starred_url":"https://api.github.com/users/anderspitman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderspitman/subscriptions","organizations_url":"https://api.github.com/users/anderspitman/orgs","repos_url":"https://api.github.com/users/anderspitman/repos","events_url":"https://api.github.com/users/anderspitman/events{/privacy}","received_events_url":"https://api.github.com/users/anderspitman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-15T23:41:31Z","updated_at":"2016-09-23T21:12:29Z","closed_at":null,"body":"This might be a stupid question. It appears that codecov only runs coverage for files that are actually compiled. So lets say I add a new source file to my project, and I compile it for my program binary, but I forget to add unit tests for the new file. Lets say further that I don't have any integration tests for the full program (obviously a bad idea). In this situation, the new file will never be compiled during my unit testing, and therefore no coverage will be generated for that file. It would be desirable for the file to be included in the report with 0% coverage.\r\n\r\nIs there a way to get this behavior?"},"comment":{"url":"https://api.github.com/repos/codecov/support/issues/comments/249303609","html_url":"https://github.com/codecov/support/issues/292#issuecomment-249303609","issue_url":"https://api.github.com/repos/codecov/support/issues/292","id":249303609,"user":{"login":"anderspitman","id":7820200,"avatar_url":"https://avatars.githubusercontent.com/u/7820200?v=3","gravatar_id":"","url":"https://api.github.com/users/anderspitman","html_url":"https://github.com/anderspitman","followers_url":"https://api.github.com/users/anderspitman/followers","following_url":"https://api.github.com/users/anderspitman/following{/other_user}","gists_url":"https://api.github.com/users/anderspitman/gists{/gist_id}","starred_url":"https://api.github.com/users/anderspitman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderspitman/subscriptions","organizations_url":"https://api.github.com/users/anderspitman/orgs","repos_url":"https://api.github.com/users/anderspitman/repos","events_url":"https://api.github.com/users/anderspitman/events{/privacy}","received_events_url":"https://api.github.com/users/anderspitman/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T21:12:29Z","updated_at":"2016-09-23T21:12:29Z","body":"@stevepeak from my limited empirical testing, it appears even if the `.gcno` files are present, nothing is reported by codecov if the `.gcda` files are not also present. Is that correct? Would it make sense to perhaps detect if the `.gcno` (generated at compile time) exists for a file and report 0% coverage if there is not a corresponding `.gcda` (generated at execution time) file?"}}
{"actor":{"display_login":"anderspitman"}}