{"action":"created","issue":{"url":"https://api.github.com/repos/istanbuljs/nyc/issues/610","repository_url":"https://api.github.com/repos/istanbuljs/nyc","labels_url":"https://api.github.com/repos/istanbuljs/nyc/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/istanbuljs/nyc/issues/610/comments","events_url":"https://api.github.com/repos/istanbuljs/nyc/issues/610/events","html_url":"https://github.com/istanbuljs/nyc/issues/610","id":236282458,"number":610,"title":"Running coverage against a server","user":{"login":"ORESoftware","id":11139560,"avatar_url":"https://avatars1.githubusercontent.com/u/11139560?v=4","gravatar_id":"","url":"https://api.github.com/users/ORESoftware","html_url":"https://github.com/ORESoftware","followers_url":"https://api.github.com/users/ORESoftware/followers","following_url":"https://api.github.com/users/ORESoftware/following{/other_user}","gists_url":"https://api.github.com/users/ORESoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/ORESoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORESoftware/subscriptions","organizations_url":"https://api.github.com/users/ORESoftware/orgs","repos_url":"https://api.github.com/users/ORESoftware/repos","events_url":"https://api.github.com/users/ORESoftware/events{/privacy}","received_events_url":"https://api.github.com/users/ORESoftware/received_events","type":"User","site_admin":false},"labels":[{"id":209354844,"url":"https://api.github.com/repos/istanbuljs/nyc/labels/bug","name":"bug","color":"fc2929","default":true},{"id":209354846,"url":"https://api.github.com/repos/istanbuljs/nyc/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":652821867,"url":"https://api.github.com/repos/istanbuljs/nyc/labels/triaged","name":"triaged","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-15T18:53:29Z","updated_at":"2017-07-29T20:35:15Z","closed_at":null,"body":"I start an Express server with:\r\n\r\n`nyc bin/www.js`\r\n\r\nthe tests are running in a separate process.\r\nWhen I am done with the tests, I currently manually kill the server with ctrl+c, when I do that, I get this error:\r\n\r\n```\r\n => Server has closed, process is exiting due to SIGINT.\r\n/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-reports/lib/lcovonly/index.js:32\r\n        writer.println('FN:' + [meta.decl.start.line, meta.name].join(','));\r\n                                         ^\r\n\r\nTypeError: Cannot read property 'start' of undefined\r\n    at /Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-reports/lib/lcovonly/index.js:32:42\r\n    at Array.forEach (native)\r\n    at LcovOnlyReport.onDetail (/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-reports/lib/lcovonly/index.js:30:28)\r\n    at LcovReport.(anonymous function) [as onDetail] (/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-reports/lib/lcov/index.js:21:24)\r\n    at Visitor.(anonymous function) [as onDetail] (/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30)\r\n    at ReportNode.Node.visit (/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17)\r\n    at /Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23\r\n    at Array.forEach (native)\r\n    at visitChildren (/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)\r\n    at ReportNode.Node.visit (/Users/alexamil/.nvm/versions/node/v6.10.2/lib/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:126:5)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/istanbuljs/nyc/issues/comments/318857651","html_url":"https://github.com/istanbuljs/nyc/issues/610#issuecomment-318857651","issue_url":"https://api.github.com/repos/istanbuljs/nyc/issues/610","id":318857651,"user":{"login":"bcoe","id":194609,"avatar_url":"https://avatars3.githubusercontent.com/u/194609?v=4","gravatar_id":"","url":"https://api.github.com/users/bcoe","html_url":"https://github.com/bcoe","followers_url":"https://api.github.com/users/bcoe/followers","following_url":"https://api.github.com/users/bcoe/following{/other_user}","gists_url":"https://api.github.com/users/bcoe/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoe/subscriptions","organizations_url":"https://api.github.com/users/bcoe/orgs","repos_url":"https://api.github.com/users/bcoe/repos","events_url":"https://api.github.com/users/bcoe/events{/privacy}","received_events_url":"https://api.github.com/users/bcoe/received_events","type":"User","site_admin":false},"created_at":"2017-07-29T20:35:15Z","updated_at":"2017-07-29T20:35:15Z","body":"@ORESoftware @ciekawy it hasn't been a top priority of the project to get test coverage working in a long lived process, e.g., a server; I would however love to support this.\r\n\r\nWould happily help landing any patches that would help address the issues folks are running into -- for starters, I think it would be worthwhile to figure out a very minimal reproduction in an isolated toy repository."}}
{"actor":{"display_login":"bcoe"}}