GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_runner: add code coverage support to spec reporter by pulkit-30 · Pull Request #46674 · nodejs/node

Conversation

@pulkit-30

@pulkit-30 pulkit-30 commented Feb 15, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

fixes #46665

test.mjs

import test from 'node:test';
import assert from 'node:assert'
test('test', () => {
  assert.strictEqual(true, true)
});

output:
running with ./node --test-reporter=spec --experimental-test-coverage test.mjs

Screenshot 2023-03-13 at 12 13 11 AM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss, styfle, ForbiddenEra, mustafahasankhan, and w3nl reacted with heart emoji bricss, styfle, ForbiddenEra, and mustafahasankhan reacted with rocket emoji
All reactions
  • ❤️ 5 reactions
  • 🚀 4 reactions
@nodejs-github-bot

nodejs-github-bot commented Feb 15, 2023

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added dont-land-on-v14.x needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Feb 15, 2023
@pulkit-30
pulkit-30 force-pushed the fix-46665 branch from 074f2fe to 1512e10 Compare February 15, 2023 19:11
@pulkit-30

pulkit-30 commented Feb 15, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Hey @cjihrig, I need some help

  1. what colour and symbol we should use for 'test:coverage' (I have used the same colour and symbol as 'test:diagnostic').
  2. I have added tests test/message/test_runner_output_spec_reporter_with_coverage.js , but I am not sure this is the correct way to test this.
    can you please help me out with these two 🚀
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow
MoLow reviewed Feb 16, 2023
View reviewed changes
Comment thread lib/internal/test_runner/reporter/spec.js Outdated

@MoLow MoLow Feb 16, 2023

Copy link
Copy Markdown
Member

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.

seems like this is duplicated from the tap reporter, can we extract the code to a common location?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

benjamingr reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@pulkit-30 pulkit-30 Feb 16, 2023

Copy link
Copy Markdown
Contributor Author

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.

Yes 👍
where we should add this code?
I think internal/util/ or internal/test_runner/utils.js one may be the right location...?

Also, can you please tell me what color and symbol we can use with the spec coverage-reporter?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
cjihrig
cjihrig reviewed Feb 16, 2023
View reviewed changes
Comment thread lib/internal/test_runner/reporter/spec.js Outdated

@cjihrig cjihrig Feb 16, 2023

Copy link
Copy Markdown
Contributor

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.

When I wrote this table for the TAP reporter, I kind of assumed that there is a good chance the TAP will be processed by something else to make it display more nicely. For the spec reporter, I would expect something a little nicer looking out of the box.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow and richiemccoll reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

@MoLow MoLow Feb 16, 2023

Copy link
Copy Markdown
Member

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.

maybe coverage should have a separate full-blown reporter?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cjihrig cjihrig Feb 16, 2023

Copy link
Copy Markdown
Contributor

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.

No strong feeling there.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@richiemccoll richiemccoll Feb 17, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

I don't know how much Node's spec coverage reporter should provide out of the box. But I guess the two common elements for these types of coverage reports would be:

  • output statistics formatted into a table
  • percentage thresholds indicated by color (green, yellow & red).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@piranna piranna Mar 12, 2023

Copy link
Copy Markdown
Contributor

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.

At #46665 (comment) and #47032, I suggested since spec reporter is intended to provide an user readable output, I propose to use Istambul text reporter, that's the same being used by Jest, NYC, and by extension also c8.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@piranna piranna Apr 28, 2023

Copy link
Copy Markdown
Contributor

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.

@piranna how about this:

Looks nice, I like it :-) Just remove the extra whitespace in line % and funcs % columns to save horizontal space.

Are going filenames and number to have some extra colors too, like yellow and red?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@dmnsgn dmnsgn Apr 29, 2023

Copy link
Copy Markdown
Contributor

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.

Here are some screenshot at different available terminal width:

  • Full width

Screenshot 2023-04-29 at 13 44 25

  • Medium:

Screenshot 2023-04-29 at 13 44 39

  • Small:

Screenshot 2023-04-29 at 13 44 49

With uncovered lines as ranges and filename with colors.
I will prepare a PR if that's okay.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@piranna piranna Apr 29, 2023

Copy link
Copy Markdown
Contributor

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.

Here are some screenshot at different available terminal width:

I love it!!! 😍

With uncovered lines as ranges and filename with colors.

I would also set yellow for percentages between red and green, and I would remove the comma between the ranges, the whitespace is enough separator. Also in ranges, I would set red for uncovered lines and yellow for uncovered branches, if possible at the same time, then this would be a full replacement for IstanbulJs text reporter :-)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cjihrig cjihrig Apr 29, 2023

Copy link
Copy Markdown
Contributor

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.

@dmnsgn I think it looks fantastic.

I will prepare a PR if that's okay.

Please do.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow and dmnsgn reacted with thumbs up emoji piranna reacted with heart emoji
All reactions
  • 👍 2 reactions
  • ❤️ 1 reaction

@dmnsgn dmnsgn Apr 30, 2023

Copy link
Copy Markdown
Contributor

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.

PR: #47791 (maintainers edit is set so feel free to take over and do any change you deem necessary)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/message/test_runner_output_spec_reporter_with_coverage.out Outdated
Comment on lines 281 to 287

@cjihrig cjihrig Feb 16, 2023

Copy link
Copy Markdown
Contributor

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.

It seems like we're not validating the important parts here. You can see how I tested this here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow and richiemccoll reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
Comment thread test/message/test_runner_output_spec_reporter_with_coverage.js Outdated

@cjihrig cjihrig Feb 16, 2023

Copy link
Copy Markdown
Contributor

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.

I think we should use a simpler test file than test_runner_output.js for this.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@aduh95 aduh95 mentioned this pull request Feb 27, 2023
chore(test): migrate to node:test nodejs/node-core-utils#670
Merged
@pulkit-30
pulkit-30 force-pushed the fix-46665 branch from 96e321a to 17cf7f6 Compare March 12, 2023 18:37
@pulkit-30
pulkit-30 marked this pull request as ready for review March 12, 2023 18:42
@pulkit-30
pulkit-30 requested a review from cjihrig March 12, 2023 18:43
benjamingr
benjamingr approved these changes Mar 13, 2023
View reviewed changes
@pulkit-30
pulkit-30 requested review from MoLow and removed request for cjihrig March 14, 2023 13:57
MoLow
MoLow reviewed Mar 14, 2023
View reviewed changes
Comment thread lib/internal/test_runner/reporter/spec.js Outdated

@MoLow MoLow Mar 14, 2023

Copy link
Copy Markdown
Member

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.

there seems this is still a code duplication

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pulkit-30
pulkit-30 force-pushed the fix-46665 branch from 0023874 to c57d48e Compare March 15, 2023 14:05
@pulkit-30
pulkit-30 requested a review from MoLow March 15, 2023 14:06
MoLow
MoLow approved these changes Mar 15, 2023
View reviewed changes

@MoLow MoLow left a comment

Copy link
Copy Markdown
Member

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.

Nice.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pulkit-30 reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@MoLow

MoLow commented Mar 15, 2023

Copy link
Copy Markdown
Member

@cjihrig any chance you give an extra look?

cjihrig reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pulkit-30
pulkit-30 requested a review from cjihrig March 15, 2023 20:07
cjihrig
cjihrig reviewed Mar 15, 2023
View reviewed changes

@cjihrig cjihrig left a comment

Copy link
Copy Markdown
Contributor

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.

Left a few comments. I'm personally unsure how far the shared coverageThreshold() will get us, but I won't block this on that since it can be revisited in the future.

It's also worth noting that this is definitely not the Istanbul text reporter requested in #46665 (comment). I personally don't care about that aspect, but others might.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/parallel/test-runner-spec-coverage.js Outdated

@cjihrig cjihrig Mar 15, 2023

Copy link
Copy Markdown
Contributor

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.

There is a lot of overlap between this file and test-runner-coverage.js. I would add the two tests from this file to the existing file. You could even leverage subtests:

test('spec reporter', async (t) => {
  await t.test('coverage is reported and dumped to NODE_V8_COVERAGE if present', (t) => {});
  // etc.
});

If you do that, please create a similar top level test for the TAP reporter too.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow, pulkit-30, and benjamingr reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
Comment thread lib/internal/test_runner/utils.js Outdated

@cjihrig cjihrig Mar 15, 2023

Copy link
Copy Markdown
Contributor

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.

Please remove the default values for symbol and color. The TAP reporter can pass them explicitly. Also, instead of using white for the TAP reporter, please use the empty string (the value of white if colors are not supported).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MoLow, pulkit-30, and benjamingr reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@MoLow

MoLow commented Mar 15, 2023

Copy link
Copy Markdown
Member

It's also worth noting that this is definitely not the Istanbul text reporter requested in #46665 (comment). I personally don't care about that aspect, but others might.

I think such a reporter fits better on user land since it will probably have many dependencies

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cjihrig

cjihrig commented Mar 15, 2023

Copy link
Copy Markdown
Contributor

it will probably have many dependencies

Possibly. I thought the ask was just to output a table that looks like https://istanbul.js.org/docs/advanced/alternative-reporters/#text. But again, I'm not too worried about it myself. I'll let others chime in if it's a big deal to them.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MoLow

MoLow commented Mar 15, 2023

Copy link
Copy Markdown
Member

I thought the ask was just to output a table that looks like istanbul.js.org/docs/advanced/alternative-reporters/#text.

that is something that can be done with https://www.npmjs.com/package/v8-to-istanbul and https://www.npmjs.com/package/istanbul-lib-report (wich is mostly what c8 does). those are the dependencies I am referring to

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cjihrig
cjihrig reviewed Mar 18, 2023
View reviewed changes
Comment thread test/parallel/test-runner-coverage.js Outdated

@cjihrig cjihrig Mar 18, 2023

Copy link
Copy Markdown
Contributor

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.

The first two subtests (--experimental-test-coverage and --test cannot be combined and handles the inspector not being available) are not specific to the TAP reporter and can stay as top level tests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pulkit-30 reacted with thumbs up emoji pulkit-30 reacted with rocket emoji
All reactions
  • 👍 1 reaction
  • 🚀 1 reaction
Comment thread lib/internal/test_runner/utils.js Outdated

@cjihrig cjihrig Mar 18, 2023

Copy link
Copy Markdown
Contributor

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.

Should white be used here? I'm trying to avoid generating colors for the TAP reporter. If this is to reset the output color, then maybe do something like:

if (color) {
  report += white
}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pulkit-30 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@pulkit-30
pulkit-30 requested a review from cjihrig March 20, 2023 07:19
@pulkit-30
pulkit-30 force-pushed the fix-46665 branch from c8aa32a to 5a3f4d8 Compare March 26, 2023 21:02
cjihrig
cjihrig reviewed Mar 28, 2023
View reviewed changes
Comment thread test/parallel/test-runner-coverage.js Outdated

@cjihrig cjihrig Mar 28, 2023

Copy link
Copy Markdown
Contributor

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.

Not something that needs to be done in this PR, but we should probably specify --test-reporter tap explicitly for these tests now that the default is sometimes TAP and sometimes spec.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@pulkit-30 pulkit-30 Mar 28, 2023

Copy link
Copy Markdown
Contributor Author

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.

we can do in this pr 👍🏼

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@piranna piranna Mar 28, 2023

Copy link
Copy Markdown
Contributor

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.

Not something that needs to be done in this PR, but we should probably specify --test-reporter tap explicitly for these tests now that the default is sometimes TAP and sometimes spec.

Since tap is more machine friendly and spec more user friendly, I think the latest one should be used by default always, and being tap and opt-in, similar to json output.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pulkit-30
test_runner: add code coverage support to spec reporter
ca35e89
@MoLow MoLow added the commit-queue PRs queued for automated landing through the Commit Queue. label Apr 2, 2023
@nodejs-github-bot nodejs-github-bot added commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. and removed commit-queue PRs queued for automated landing through the Commit Queue. labels Apr 2, 2023
@nodejs-github-bot

nodejs-github-bot commented Apr 2, 2023

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/46674
✔  Done loading data for nodejs/node/pull/46674
----------------------------------- PR info ------------------------------------
Title      test_runner: add code coverage support to spec reporter (#46674)
Author     Pulkit Gupta  (@pulkit-30)
Branch     pulkit-30:fix-46665 -> nodejs:main
Labels     needs-ci, dont-land-on-v14.x, test_runner
Commits    2
 - test_runner: add code coverage support to spec reporter
 - added test-reporter explicitly
Committers 1
 - Pulkit Gupta <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/46674
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Moshe Atlow 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/46674
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Moshe Atlow 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 15 Feb 2023 18:48:01 GMT
   ✔  Approvals: 2
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/46674#pullrequestreview-1336840123
   ✔  - Moshe Atlow (@MoLow): https://github.com/nodejs/node/pull/46674#pullrequestreview-1342206151
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2023-04-02T09:57:41Z: https://ci.nodejs.org/job/node-test-pull-request/50812/
- Querying data for job/node-test-pull-request/50812/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/main up to date...
From https://github.com/nodejs/node
 * branch                  main       -> FETCH_HEAD
✔  origin/main is now up-to-date
- Downloading patch for 46674
From https://github.com/nodejs/node
 * branch                  refs/pull/46674/merge -> FETCH_HEAD
✔  Fetched commits as 85705a47958c..1f1de83ed66e
--------------------------------------------------------------------------------
[main e6e11385ba] test_runner: add code coverage support to spec reporter
 Author: Pulkit Gupta <[email protected]>
 Date: Mon Mar 27 02:32:05 2023 +0530
 4 files changed, 163 insertions(+), 89 deletions(-)
[main 934b5030b7] added test-reporter explicitly
 Author: Pulkit Gupta <[email protected]>
 Date: Tue Mar 28 22:49:32 2023 +0530
 1 file changed, 2 insertions(+), 2 deletions(-)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
Rebasing (2/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
test_runner: add code coverage support to spec reporter

PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum [email protected]
Reviewed-By: Moshe Atlow [email protected]

[detached HEAD 5df08caa37] test_runner: add code coverage support to spec reporter
Author: Pulkit Gupta [email protected]
Date: Mon Mar 27 02:32:05 2023 +0530
4 files changed, 163 insertions(+), 89 deletions(-)
Rebasing (3/4)
Rebasing (4/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
added test-reporter explicitly

PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum [email protected]
Reviewed-By: Moshe Atlow [email protected]

[detached HEAD 09f573e26c] added test-reporter explicitly
Author: Pulkit Gupta [email protected]
Date: Tue Mar 28 22:49:32 2023 +0530
1 file changed, 2 insertions(+), 2 deletions(-)

Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/4589831840

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MoLow MoLow added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. and removed commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. labels Apr 2, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Apr 2, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 6d06586 into nodejs:main Apr 2, 2023
@nodejs-github-bot

nodejs-github-bot commented Apr 2, 2023

Copy link
Copy Markdown
Collaborator

Landed in 6d06586

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pulkit-30
pulkit-30 deleted the fix-46665 branch April 2, 2023 17:42
This was referenced Apr 3, 2023
CI Reliability 2023-04-03 nodejs/reliability#538
Open
CI Reliability 2023-04-04 nodejs/reliability#539
Open
RafaelGSS pushed a commit that referenced this pull request Apr 5, 2023
@pulkit-30 @RafaelGSS
test_runner: add code coverage support to spec reporter
217fc56
PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
@RafaelGSS RafaelGSS mentioned this pull request Apr 6, 2023
v19.9.0 proposal #47441
Merged
RafaelGSS pushed a commit that referenced this pull request Apr 6, 2023
@pulkit-30 @RafaelGSS
test_runner: add code coverage support to spec reporter
d4c945d
PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Apr 7, 2023
@pulkit-30 @RafaelGSS
test_runner: add code coverage support to spec reporter
48206cb
PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Apr 8, 2023
@pulkit-30 @RafaelGSS
test_runner: add code coverage support to spec reporter
6b87f29
PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
@dmnsgn dmnsgn mentioned this pull request Apr 30, 2023
test_runner: refactor coverage report output for readability #47791
Merged
dmnsgn added a commit to dmnsgn/node that referenced this pull request Jun 6, 2023
@dmnsgn
test_runner: refactor coverage report output for readability
d177485
Add a "table" parameter to getCoverageReport.
Keep the tap coverage output intact.
Change the output by adding padding and truncating the tables' cells.
Add separation lines for table head/body/foot.
Group uncovered lines as ranges.
Add yellow color for coverage between 50 and 90.

Refs: nodejs#46674
nodejs-github-bot pushed a commit that referenced this pull request Jun 7, 2023
@dmnsgn
test_runner: refactor coverage report output for readability
23c7f65
Add a "table" parameter to getCoverageReport.
Keep the tap coverage output intact.
Change the output by adding padding and truncating the tables' cells.
Add separation lines for table head/body/foot.
Group uncovered lines as ranges.
Add yellow color for coverage between 50 and 90.

Refs: #46674
PR-URL: #47791
Reviewed-By: Moshe Atlow <[email protected]>
RafaelGSS pushed a commit that referenced this pull request Jul 3, 2023
@dmnsgn @RafaelGSS
test_runner: refactor coverage report output for readability
93bf447
Add a "table" parameter to getCoverageReport.
Keep the tap coverage output intact.
Change the output by adding padding and truncating the tables' cells.
Add separation lines for table head/body/foot.
Group uncovered lines as ranges.
Add yellow color for coverage between 50 and 90.

Refs: #46674
PR-URL: #47791
Reviewed-By: Moshe Atlow <[email protected]>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
@pulkit-30 @danielleadams
test_runner: add code coverage support to spec reporter
12fef4b
PR-URL: #46674
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
@pulkit-30 @MoLow
test_runner: add code coverage support to spec reporter
99312a5
PR-URL: nodejs#46674
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
@danielleadams danielleadams mentioned this pull request Jul 10, 2023
v18.17.0 release proposal #48694
Merged
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
@dmnsgn @Ceres6
test_runner: refactor coverage report output for readability
32ed06b
Add a "table" parameter to getCoverageReport.
Keep the tap coverage output intact.
Change the output by adding padding and truncating the tables' cells.
Add separation lines for table head/body/foot.
Group uncovered lines as ranges.
Add yellow color for coverage between 50 and 90.

Refs: nodejs#46674
PR-URL: nodejs#47791
Reviewed-By: Moshe Atlow <[email protected]>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
@dmnsgn @Ceres6
test_runner: refactor coverage report output for readability
f7bbfd1
Add a "table" parameter to getCoverageReport.
Keep the tap coverage output intact.
Change the output by adding padding and truncating the tables' cells.
Add separation lines for table head/body/foot.
Group uncovered lines as ranges.
Add yellow color for coverage between 50 and 90.

Refs: nodejs#46674
PR-URL: nodejs#47791
Reviewed-By: Moshe Atlow <[email protected]>
ruyadorno pushed a commit that referenced this pull request Aug 29, 2023
@dmnsgn @ruyadorno
test_runner: refactor coverage report output for readability
f302286
Add a "table" parameter to getCoverageReport.
Keep the tap coverage output intact.
Change the output by adding padding and truncating the tables' cells.
Add separation lines for table head/body/foot.
Group uncovered lines as ranges.
Add yellow color for coverage between 50 and 90.

Refs: #46674
PR-URL: #47791
Reviewed-By: Moshe Atlow <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@MoLow MoLow MoLow approved these changes
@benjamingr benjamingr benjamingr approved these changes
@cjihrig cjihrig Awaiting requested review from cjihrig
+3 more reviewers
@piranna piranna piranna left review comments
@dmnsgn dmnsgn dmnsgn left review comments
@richiemccoll richiemccoll richiemccoll left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

commit-queue-squash PRs the Commit Queue should land as one squashed commit. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

test_runner: add code coverage support to spec reporter

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@pulkit-30 @nodejs-github-bot @MoLow @cjihrig @piranna @benjamingr @dmnsgn @richiemccoll
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.