FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test_runner: fixed test object is incorrectly passed to setup() by pulkit-30 · Pull Request #50982 · nodejs/node · GitHub

/ node Public

test_runner: fixed test object is incorrectly passed to setup() - #50982

Merged
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
pulkit-30:fix-48809
Dec 24, 2023
Merged

test_runner: fixed test object is incorrectly passed to setup()#50982
nodejs-github-bot merged 5 commits into
nodejs:mainfrom
pulkit-30:fix-48809

Conversation

pulkit-30 commented Nov 30, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Fix #48809

pass testStream to setup instead testRoot.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Nov 30, 2023
Comment thread lib/internal/test_runner/utils.js Outdated
pulkit-30 marked this pull request as ready for review December 3, 2023 12:36

rluvaton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you please add a test

pulkit-30 requested a review from rluvaton December 4, 2023 04:38
Comment thread test/parallel/test-runner-run.mjs Outdated
Comment thread test/parallel/test-runner-run.mjs Outdated
Comment thread test/parallel/test-runner-run.mjs Outdated

rluvaton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Well done! thanks

rluvaton added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 4, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 4, 2023

Copy link
Copy Markdown
Collaborator

pulkit-30 requested a review from MoLow December 4, 2023 15:29

MoLow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

this PR causes a regression:
running a simple test file:

const test = require("node:test");
test("a", () => console.log(1));

on main console is printed with colors

but on this branch the colors are discarded:

I am working on fixing the test that should have caught this

Copy link
Copy Markdown
Contributor Author

this PR causes a regression:
running a simple test file:

I was also suspecting something, but surprised by the tests 😅

Copy link
Copy Markdown
Contributor Author

converting this PR to draft. ref: #51064, still working on it 🚀

pulkit-30 marked this pull request as draft December 6, 2023 01:51
pulkit-30 marked this pull request as ready for review December 6, 2023 17:01
pulkit-30 requested a review from MoLow December 11, 2023 15:49
Comment thread test/parallel/test-runner-run.mjs Outdated
Comment thread lib/internal/test_runner/utils.js Outdated

MoLow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

createWriteStream is called multiple times for each reporter destination, and in some cases the writeStream is never being closed

Comment thread lib/internal/test_runner/utils.js Outdated
Comment thread lib/internal/test_runner/harness.js Outdated
Comment thread lib/internal/test_runner/runner.js Outdated
pulkit-30 requested a review from MoLow December 15, 2023 16:50

Copy link
Copy Markdown
Contributor Author

@MoLow PTAL.

MoLow added request-ci Add this label to start a Jenkins CI on a PR. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Dec 23, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 23, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 24, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 24, 2023
nodejs-github-bot merged commit dad666a into nodejs:main Dec 24, 2023

Copy link
Copy Markdown
Collaborator

Landed in dad666a

MoLow commented Dec 24, 2023

Copy link
Copy Markdown
Member

@pulkit-30 thanks for the hard work 🎉

Copy link
Copy Markdown
Contributor Author

@pulkit-30 thanks for the hard work 🎉

Thanks a ton! It means a lot.

RafaelGSS pushed a commit that referenced this pull request Jan 2, 2024
PR-URL: #50982
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
RafaelGSS mentioned this pull request Jan 2, 2024

koshic commented Jan 16, 2024

Copy link
Copy Markdown

@MoLow do you plan to backport it to 20.x? Documentation is still incorrect - https://nodejs.org/docs/latest-v20.x/api/test.html#runoptions.

MoLow commented Jan 16, 2024

Copy link
Copy Markdown
Member

not every PR needs a manual backport. lets wait for @nodejs/releasers to release a new v20 version and request a backport if needed

richardlau pushed a commit that referenced this pull request Mar 25, 2024
PR-URL: #50982
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
richardlau mentioned this pull request Mar 25, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_runner: test object is incorrectly passed to setup()

6 participants


Back | FazBrowse Home | New Git URL