{"action":"created","issue":{"url":"https://api.github.com/repos/hapijs/lab/issues/627","repository_url":"https://api.github.com/repos/hapijs/lab","labels_url":"https://api.github.com/repos/hapijs/lab/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/hapijs/lab/issues/627/comments","events_url":"https://api.github.com/repos/hapijs/lab/issues/627/events","html_url":"https://github.com/hapijs/lab/issues/627","id":172202227,"number":627,"title":"\"No coverage information was collected, exit without writing coverage information\" even though 11 tests ran","user":{"login":"jcollum","id":704514,"avatar_url":"https://avatars.githubusercontent.com/u/704514?v=3","gravatar_id":"","url":"https://api.github.com/users/jcollum","html_url":"https://github.com/jcollum","followers_url":"https://api.github.com/users/jcollum/followers","following_url":"https://api.github.com/users/jcollum/following{/other_user}","gists_url":"https://api.github.com/users/jcollum/gists{/gist_id}","starred_url":"https://api.github.com/users/jcollum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcollum/subscriptions","organizations_url":"https://api.github.com/users/jcollum/orgs","repos_url":"https://api.github.com/users/jcollum/repos","events_url":"https://api.github.com/users/jcollum/events{/privacy}","received_events_url":"https://api.github.com/users/jcollum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-19T19:22:28Z","updated_at":"2016-08-19T22:18:08Z","closed_at":null,"body":"I'm trying to get Istanbul and Lab working together. It does work, sometimes. Then other times, I get \"No coverage information was collected, exit without writing coverage information\" if I force it to write out an `lcov` report. But the tests all ran and passed! This is confusing. \r\n\r\n```\r\n$ ./node_modules/.bin/istanbul cover ./node_modules/.bin/lab -- -l -e development ./dist/test/unit.js \r\n\r\n    ...........\r\n\r\n11 tests complete\r\nTest duration: 267 ms\r\n```\r\n\r\nwith `-r lcov`:\r\n```\r\nTN:\r\nSF:/Users/collumj/work/crdb/api/dist/router.js\r\nDA:1,1\r\nDA:2,1\r\nDA:3,1\r\n...\r\nDA:794,1\r\nDA:795,1\r\nLF:762\r\nLH:726\r\nend_of_record\r\nNo coverage information was collected, exit without writing coverage information\r\n``` \r\n\r\nWhat do I do with this? The tests are running, I was getting coverage a few hours ago (37.2%, ugh) and now I get none. If I had to guess I'd say that Istanbul can't do anything here because Lab isn't emitting proper code coverage data. Do I need to provide some hints to Lab or something? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hapijs/lab/issues/comments/241149428","html_url":"https://github.com/hapijs/lab/issues/627#issuecomment-241149428","issue_url":"https://api.github.com/repos/hapijs/lab/issues/627","id":241149428,"user":{"login":"jcollum","id":704514,"avatar_url":"https://avatars.githubusercontent.com/u/704514?v=3","gravatar_id":"","url":"https://api.github.com/users/jcollum","html_url":"https://github.com/jcollum","followers_url":"https://api.github.com/users/jcollum/followers","following_url":"https://api.github.com/users/jcollum/following{/other_user}","gists_url":"https://api.github.com/users/jcollum/gists{/gist_id}","starred_url":"https://api.github.com/users/jcollum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcollum/subscriptions","organizations_url":"https://api.github.com/users/jcollum/orgs","repos_url":"https://api.github.com/users/jcollum/repos","events_url":"https://api.github.com/users/jcollum/events{/privacy}","received_events_url":"https://api.github.com/users/jcollum/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T22:18:08Z","updated_at":"2016-08-19T22:18:08Z","body":"I tried the full command (note `-r lcov -c`): \r\n\r\n`./node_modules/.bin/istanbul cover ./node_modules/.bin/lab --  -l -e development -m 2000 -c -r lcov ./dist/test/unit.js ` \r\n\r\nResult: \r\n\r\n```\r\nDA:792,1\r\nDA:793,1\r\nDA:794,1\r\nDA:795,1\r\nLF:762\r\nLH:726\r\nend_of_record\r\nNo coverage information was collected, exit without writing coverage information\r\n```\r\n"}}
{"actor":{"display_login":"jcollum"}}