| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
|
I think this should also set the exit code to a nonzero value such that CI systems will mark the job as failed. |
Sorry, something went wrong.
There was a problem hiding this comment.
I agree on the exit code; also, coverage always has 4 metrics, lines, functions, branches, and statements.
Sorry, something went wrong.
working on it 👍🏼 |
Sorry, something went wrong.
|
It’s still missing “statements”. |
Sorry, something went wrong.
I think we don't collect statement coverage summary. @MoLow please confirm about statement summary here and how can we support that. |
Sorry, something went wrong.
|
PTAL @nodejs/test_runner |
Sorry, something went wrong.
There was a problem hiding this comment.
Overall LGTM, should add documentation though
Sorry, something went wrong.
Thanks for review 🙌🏼 . will add documentation.
@atlowChemi Any idea about this? |
Sorry, something went wrong.
There was a problem hiding this comment.
There's a reason we don't use such a threshold in this repository -- it tends to be a fragile indicator.
On a side note, the first commit message does not adhere to our requirements and must be amended.
Sorry, something went wrong.
There was a problem hiding this comment.
The documentation doesn't say anything about what coverage metric is meant here.
Sorry, something went wrong.
There was a problem hiding this comment.
Indeed; typically in code coverage there are 4 metrics (statements remains missing), and all 4 are independently able to be set to a threshold.
Sorry, something went wrong.
There was a problem hiding this comment.
Really good work, I'm not convinced we need/want the feature but the code and everyting else looks solid <3
Sorry, something went wrong.
Thanks @benjamingr, Additionally, it might be beneficial to consider adding a coverage option within the test_runner/run() function. WDYT @nodejs/test_runner |
Sorry, something went wrong.
FWIW, Node.js could always emit coverage data in some standardized format that could then be consumed by a different tool (e.g., codecov or so). Also, "100% code coverage" is a somewhat odd metric. It by no means guarantees the absence of bugs yet is almost impossible to achieve in many cases. |
Sorry, something went wrong.
node already does that https://nodejs.org/api/test.html#event-testcoverage |
Sorry, something went wrong.
|
This appears to have stalled out and now has conflicts. I'm going to close this for now. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
fixes #48739
Added support for coverage threshold comparison.
example:
code:
output:
cmd: ./node --experimental-test-coverage --experimental-minimal-test-coverage 80 index.mjs
code:
output: