{"action":"created","issue":{"url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage/issues/210","repository_url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage","labels_url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage/issues/210/comments","events_url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage/issues/210/events","html_url":"https://github.com/kategengler/ember-cli-code-coverage/issues/210","id":395907284,"node_id":"MDU6SXNzdWUzOTU5MDcyODQ=","number":210,"title":"Test cases fail with --path flag in 1.0.0-beta.0","user":{"login":"kandhavivekraj","id":16044711,"node_id":"MDQ6VXNlcjE2MDQ0NzEx","avatar_url":"https://avatars1.githubusercontent.com/u/16044711?v=4","gravatar_id":"","url":"https://api.github.com/users/kandhavivekraj","html_url":"https://github.com/kandhavivekraj","followers_url":"https://api.github.com/users/kandhavivekraj/followers","following_url":"https://api.github.com/users/kandhavivekraj/following{/other_user}","gists_url":"https://api.github.com/users/kandhavivekraj/gists{/gist_id}","starred_url":"https://api.github.com/users/kandhavivekraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kandhavivekraj/subscriptions","organizations_url":"https://api.github.com/users/kandhavivekraj/orgs","repos_url":"https://api.github.com/users/kandhavivekraj/repos","events_url":"https://api.github.com/users/kandhavivekraj/events{/privacy}","received_events_url":"https://api.github.com/users/kandhavivekraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-01-04T12:19:22Z","updated_at":"2019-01-04T13:53:52Z","closed_at":null,"author_association":"NONE","body":"Test cases fail when I update from 0.4.2 to 1.0.0-beta.0\r\n\r\nCommand:  `COVERAGE=true node_modules/.bin/ember exam --path='test-dist' --split=4 --parallel --partition=1`\r\n\r\nI'm running the above command, and some of my test cases are starting to fail with the error\r\n\r\n```\r\nTypeError: Cannot convert undefined or null to object\r\n    at Function.keys (<anonymous>)\r\n    at writeCoverage (/.../node_modules/ember-cli-code-coverage/lib/attach-middleware.js:29:10)\r\n    at coverageHandler (/.../node_modules/ember-cli-code-coverage/lib/attach-middleware.js:55:3)\r\n    at Layer.handle [as handle_request] (/.../node_modules/express/lib/router/layer.js:95:5)\r\n    at next (/.../node_modules/express/lib/router/route.js:137:13)\r\n    at /.../node_modules/body-parser/lib/read.js:130:5\r\n    at invokeCallback /.../node_modules/raw-body/index.js:224:16)\r\n    at done (/.../raw-body/index.js:213:7)\r\n    at IncomingMessage.onEnd (/.../node_modules/raw-body/index.js:273:7)\r\n    at emitNone (events.js:106:13)\r\n    at IncomingMessage.emit (events.js:208:7)\r\n    at endReadableNT (_stream_readable.js:1064:12)\r\n    at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n```\r\n\r\nI guess while passing the `--path` flag, the addons' included hook is not invoked and so `fileLookup`'s value is [null](https://github.com/kategengler/ember-cli-code-coverage/blob/a8eed20591b2eb79c2af598136a51cff32bc7025/index.js#L35) and then in `writeCoverage` method while iterating, `fileLookup` error occurs in [this](https://github.com/kategengler/ember-cli-code-coverage/blob/a8eed20591b2eb79c2af598136a51cff32bc7025/lib/attach-middleware.js#L43) line.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage/issues/comments/451449246","html_url":"https://github.com/kategengler/ember-cli-code-coverage/issues/210#issuecomment-451449246","issue_url":"https://api.github.com/repos/kategengler/ember-cli-code-coverage/issues/210","id":451449246,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTQ0OTI0Ng==","user":{"login":"kandhavivekraj","id":16044711,"node_id":"MDQ6VXNlcjE2MDQ0NzEx","avatar_url":"https://avatars1.githubusercontent.com/u/16044711?v=4","gravatar_id":"","url":"https://api.github.com/users/kandhavivekraj","html_url":"https://github.com/kandhavivekraj","followers_url":"https://api.github.com/users/kandhavivekraj/followers","following_url":"https://api.github.com/users/kandhavivekraj/following{/other_user}","gists_url":"https://api.github.com/users/kandhavivekraj/gists{/gist_id}","starred_url":"https://api.github.com/users/kandhavivekraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kandhavivekraj/subscriptions","organizations_url":"https://api.github.com/users/kandhavivekraj/orgs","repos_url":"https://api.github.com/users/kandhavivekraj/repos","events_url":"https://api.github.com/users/kandhavivekraj/events{/privacy}","received_events_url":"https://api.github.com/users/kandhavivekraj/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T13:53:52Z","updated_at":"2019-01-04T13:53:52Z","author_association":"NONE","body":"@rwwagner90 Even in the latest version (`1.0.0-beta.8`), in writeCoverage method fileLookup is being iterated. Hence the same problem [exists](https://github.com/kategengler/ember-cli-code-coverage/blob/2cefa0477d6e14be8b7c812367ceddcc51f45303/lib/attach-middleware.js#L29)"}}
{"actor":{"display_login":"kandhavivekraj"}}