Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-source-file code coverage reports not generated #115

Closed
daniel3735928559 opened this issue Nov 23, 2018 · 1 comment
Closed

Per-source-file code coverage reports not generated #115

daniel3735928559 opened this issue Nov 23, 2018 · 1 comment
Milestone

Comments

@daniel3735928559
Copy link
Owner

Steps performed:

Run npm test from command line.

This uses rollup-plugin-istanbul for instrumentation at build time, and karma-coverage for consuming instrumentation and report generation.

Observed:

Tests run and pass, but error message appears:

ERROR [coverage]: TypeError: Cannot read property 'text' of undefined
    at node_modules/istanbul/lib/report/html.js:286:60
    ...

Also, aggregate information as in build/coverage/report-html/src/index.html is generated, but the line-by-line reports such as build/coverage/report-html/src/doc.js.html are not generated.

Expected:

npm test should complete without error and per-file code HTML coverage reports should be generated by npm test.

@daniel3735928559 daniel3735928559 added this to the v2.0.0-rc.1 milestone Nov 23, 2018
@daniel3735928559
Copy link
Owner Author

Solved in 6482a97 thanks to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant