-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replace nyc with c8. #4
Conversation
c8 isn't working properly. It's showing jsdocs as code, giving a higher % of code coverage. I'll be looking into it. Update: It's not working, tried it on a small project that uses esm and was getting 100% code coverage even when some of the code weren't tested. This maybe related to this issue which is still open - bcoe/c8#34 where others have reported about the same issue. The latest comment on it was on Apr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, though yeah, we should investigate how to exclude jsdocs.
"coverage-ci": "cross-env NODE_ENV=test nyc --reporter=lcov npm test", | ||
"coverage-report": "nyc report" | ||
"coverage": "cross-env NODE_ENV=test c8 --reporter=lcov --reporter=text-summary npm test", | ||
"coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcov npm test", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have already been just "lcovonly" since ci only needs the coverage report.
"coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcov npm test", | |
"coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcovonly npm test", |
Is this working?
Am I running it wrong or looking at the wrong output? |
I tried to add the patch from #6 here. It didn't fix the odd coverage output. I didn't look further. It may be that |
I think this can be closed due to #6 being merged. Fixing c8 support can be revisited if needed. |
Closing, c8 is now used on the main branch. |
No description provided.