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

No test coverage report generated #12

Closed
andrewmarklloyd opened this issue Sep 25, 2017 · 1 comment
Closed

No test coverage report generated #12

andrewmarklloyd opened this issue Sep 25, 2017 · 1 comment

Comments

@andrewmarklloyd
Copy link
Contributor

Steps to reproduce

  • run npm run test:coverage
  • Only tested on macOS Sierra

Expected

  • Coverage report is printed to terminal as shown below and coverage directory is populated with appropriate metrics
=============================== Coverage summary ===============================
Statements   : 68.03% ( 349/513 )
Branches     : 51.52% ( 102/198 )
Functions    : 52.21% ( 59/113 )
Lines        : 68.8% ( 333/484 )
================================================================================

Observed

  • Terminal prints "No coverage information was collected, exit without writing coverage information"

Possible Fix

  • Without too much testing, updating from istanbul@0.4.5 to istanbul@1.0.0-alpha.2 generates the coverage report. Not sure if there are other ways to fix this with a different configuration.
@TheHollidayInn
Copy link
Contributor

I'm fine with updating the library to fix!

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

2 participants