-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Coverage for semaphore/index.ts shows error information, which also seems to decrease coverage percentage for no reason.
How to reproduce
-
async-playground at commit fa32e5e.
-
Optional: produce coverage info
-
Go to
coverage/semaphore/index.ts.html. Live: https://comfreek.github.io/async-playground/coverage/semaphore/index.ts.html -
The following error message is shown there:
Cannot read property 'start' of undefined TypeError: Cannot read property 'start' of undefined at /home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:50:29 at Array.forEach () at annotateStatements (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:46:33) at Object.annotateSourceCode (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:190:9) at HtmlReport.onDetail (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:237:39) at Visitor.(anonymous function) [as onDetail] (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30) at ReportNode.Node.visit (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17) at /home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23 at Array.forEach () at visitChildren (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)
Related bug reports
- Typescript reports with error: property 'start' of undefined istanbuljs/nyc#733
- Cannot read property 'start' of undefined istanbuljs/nyc#239
- Issues with meta.loc.start.line when running lcov reports istanbuljs/nyc#677
- [7.0.0] Cannot read property 'start' of undefined istanbuljs/nyc#306
- Error when trying to generate html reports. gotwarlost/istanbul#702
Summary:
- Sometimes due to old Babel plugins being used. We don't use Babel here. (We only use TypeScript.)
- Sometimes non-deterministic due to cached data. This is reproducible on Travis CI, which should not cache any data.
- Sometimes unsolved.