-
Notifications
You must be signed in to change notification settings - Fork 16
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
check-coverage doesn’t work correctly #2
Comments
Could you try the new version I just pushed. Reopen if the problem still exists. |
Hi @gotwarlost, I’ve tried istanbul-api version 1.0.0-alpha.10, but the problem still exists:
Coverage summary:
check-coverage output:
|
Dammit, will take a look. Thanks for testing. If this project is public on github, could you give me a link. Otherwise, I'll deal with reproducing it. |
Unfortunately the project is not opensource, but I’ve create a reproducible example based on |
FWIW this change solved the issue for me, but I'm not sure if this is the correct way to solve the problem. |
Thanks for the repro case. I will look into in shortly. |
+1 Having the same problem. |
+1 Any updates yet? Love istanbul, want to go on using it. |
+1 Same problem |
The difference between
Not sure how to fix this though, any help? |
+1 Still a problem on 1.1.0-alpha.1 .Any updates yet? Thanks |
Awesome. All works nicely now using nyc. Thanks |
I’m using istanbul
1.0.0-alpha2
with a setup similar tosample-babel-node
.My
npm test
script looks like this:If I run this script I get different results for the
cover
andcheck-coverage
command:cover command:
check-coverage command:
As you can see the coverage for e.g. branches is one time 99.89% and the other time it is only 63.77%.
I think the problem is that the
check-coverage
command reads the coverage result fromcoverage.raw.json
which is the coverageMap before the source map was applied.I’ve changed this code on my local istanbul installation to write the content of
transformed.map
instead offinalCoverage
to thecoverage.raw.json
file. This solved the problem for me.The text was updated successfully, but these errors were encountered: