{"action":"created","issue":{"url":"https://api.github.com/repos/istanbuljs/nyc/issues/377","repository_url":"https://api.github.com/repos/istanbuljs/nyc","labels_url":"https://api.github.com/repos/istanbuljs/nyc/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/istanbuljs/nyc/issues/377/comments","events_url":"https://api.github.com/repos/istanbuljs/nyc/issues/377/events","html_url":"https://github.com/istanbuljs/nyc/issues/377","id":174539323,"number":377,"title":"Check coverage against specific files","user":{"login":"boxfoot","id":487130,"avatar_url":"https://avatars.githubusercontent.com/u/487130?v=3","gravatar_id":"","url":"https://api.github.com/users/boxfoot","html_url":"https://github.com/boxfoot","followers_url":"https://api.github.com/users/boxfoot/followers","following_url":"https://api.github.com/users/boxfoot/following{/other_user}","gists_url":"https://api.github.com/users/boxfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/boxfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxfoot/subscriptions","organizations_url":"https://api.github.com/users/boxfoot/orgs","repos_url":"https://api.github.com/users/boxfoot/repos","events_url":"https://api.github.com/users/boxfoot/events{/privacy}","received_events_url":"https://api.github.com/users/boxfoot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-01T14:31:50Z","updated_at":"2016-09-29T21:01:04Z","closed_at":null,"body":"I am working on a project where we are slowly catching up with code coverage on a very large codebase.  We'd love to put in a minimum coverage test as part of our CI but it's hard because the threshold is so low currently that it's somewhat meaningless.\r\n\r\nI'd love to be able to pass a `--files` parameter into `nyc --report` and `nyc --check-coverage` so that the test only applies to files that have been touched in this branch/PR.  (We could use `git diff --name-only` to generate the list of files, for example)\r\n\r\nCurious if the `nyc` team would be open to a feature like this, and then I can poke around on how to do it."},"comment":{"url":"https://api.github.com/repos/istanbuljs/nyc/issues/comments/250590047","html_url":"https://github.com/istanbuljs/nyc/issues/377#issuecomment-250590047","issue_url":"https://api.github.com/repos/istanbuljs/nyc/issues/377","id":250590047,"user":{"login":"boxfoot","id":487130,"avatar_url":"https://avatars.githubusercontent.com/u/487130?v=3","gravatar_id":"","url":"https://api.github.com/users/boxfoot","html_url":"https://github.com/boxfoot","followers_url":"https://api.github.com/users/boxfoot/followers","following_url":"https://api.github.com/users/boxfoot/following{/other_user}","gists_url":"https://api.github.com/users/boxfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/boxfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boxfoot/subscriptions","organizations_url":"https://api.github.com/users/boxfoot/orgs","repos_url":"https://api.github.com/users/boxfoot/repos","events_url":"https://api.github.com/users/boxfoot/events{/privacy}","received_events_url":"https://api.github.com/users/boxfoot/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T21:01:04Z","updated_at":"2016-09-29T21:01:04Z","body":"OK, just reporting back that I have a work-around in place:\r\n\r\n* `precover-branch` script checks for changed files with `git diff` and adds to package.json nyc configuration\r\n* `cover-branch` script runs coverage\r\n* `postcover-branch` restores package.json configuration\r\n\r\nIt's a bit hackish but gets the job done for now until there's something more elegant."}}
{"actor":{"display_login":"boxfoot"}}