Uh oh!
There was an error while loading. Please reload this page.
feat(learn): Collecting code coverage - #7006
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
avivkeller
commented
Aug 24, 2024
This is currently marked as draft until the next semver-minor release of Node.js |
AugustinMauroy
left a comment
There was a problem hiding this comment.
This is my first feedback, I think the introduction should be improved to put it in context. It should be remembered that the learn section is intended for non-experts.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Deployment failed with the following error: |
Uh oh!
There was an error while loading. Please reload this page.
mikeesto
left a comment
There was a problem hiding this comment.
Thanks for writing this, reads well
Uh oh!
There was an error while loading. Please reload this page.
I've undrafted this, as the release proposal for v22.8.0 is ready at nodejs/node#54560, but it still shouldn't land until that does. The expected release date is |
bmuenzenmeyer
left a comment
There was a problem hiding this comment.
this is great - looking forward to it
AugustinMauroy
commented
Sep 2, 2024
Can we have last review form @nodejs/test_runner |
mcollina
left a comment
There was a problem hiding this comment.
This is amazing. However I'm not sure we should be landing this before having stabilized the code coverage functionality.
mcollina
left a comment
There was a problem hiding this comment.
This is amazing. However I'm not sure we should be landing this before having stabilized the code coverage functionality.
avivkeller
commented
Sep 2, 2024
I think this is okay to land once v22.8.0 releases, as it specifies that the |
mcollina
commented
Sep 2, 2024
I think it's better to hold off until it's stable. |
ovflowd
commented
Oct 28, 2024
Is there an ETA for the stabilization of it? |
avivkeller
commented
Oct 28, 2024
IMO code coverage (w/o the I asked a few weeks ago, and it was pointed out that statement coverage isn't supported, however, I'm not sure if that's in the plans for the immediate future of code coverage. The original issue tracking the stability has been closed as completed, as all tasks were completed, which might mean it's ready to be stable. I've left a comment asking. |
ovflowd
commented
Nov 17, 2024
I'm fine keeping this open for the meantime, the problem is it becoming stale. |
avivkeller
commented
Nov 17, 2024
I'm also happy to close and reopen it, as chances are there will be some significant changes to the coverage reporter before stabilization, and this only collecting merge conflicts. |
ovflowd
left a comment
There was a problem hiding this comment.
@avivkeller has there been any change yet? I feel we could merge the PR to be honest.
It's still experimental, but it's more stable, so I also think this can be merged. @mcollina are you still blocking? (I'll resolve the conflicts later today) |
Co-authored-by: Michael Esteban <mickel13@gmail.com> Signed-off-by: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com>
Signed-off-by: Aviv Keller <redyetidev@gmail.com>
Lighthouse Results
|
avivkeller
commented
Mar 22, 2025
Article published: https://nodejs.org/en/learn/test-runner/collecting-code-coverage |
Description
This PR introduces a learning article on collecting code coverage in Node.js. However, it should not be merged until support for thresholds is included in the next semver-minor release, which is expected to be next week.
Related Issues
Support for code coverage: nodejs/node#46017
Support for code coverage inclusion/exclusion: nodejs/node#53553
Support for code coverage thresholds: nodejs/node#54429
Check List
npm run formatto ensure the code follows the style guide.npm run testto check if all tests are passing.npx turbo buildto check if the website builds without errors.