GeezerVison is showing github.com — test_runner: added restart log in test-runner/runner.js by sivakumar-77 · Pull Request #57375 · nodejs/node
Conversation
sivakumar-77
commented
Mar 8, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #57206
Added restart log in test-runner/runner.js to log with timestamp and test-file
whenever the test file is restart testing in --watch mode.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fixes nodejs#57206
Added restart log in test-runner/runner.js to log with timestamp and test-file, whenever the test file is restart testing in `--watch` mode.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
sivakumar-77
changed the title
add: restart log in test-runner/runner.js
lib: added restart log in test-runner/runner.js
Mar 8, 2025
|
Hey @sivakumar-77, thanks for opening this PR! 🚀
I think we should avoid adding process.stdout.write directly inside the runner restart logic.
I would suggest adding a new event, like the existing one, test:watch:drained, to allow users to customise the behaviour while avoiding unwanted output in existing custom reporters.
I would then suggest handling the new event in the internal reporters (spec, tap, etc.).
Could you also please add tests to cover this feature?
|
atlowChemi, sivakumar-77, and MoLow reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
pmarchini
changed the title
lib: added restart log in test-runner/runner.js
test_runner: added restart log in test-runner/runner.js
Mar 8, 2025
|
Hey @pmarchini thanks for the feedback! 🙌
That makes sense—I’ll update the PR to introduce a new event instead of directly modifying the runner restart logic. I’ll also update the internal reporters to handle it appropriately.
I'll add tests to cover this feature as well. Thanks
|
pmarchini reacted with rocket emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hey @sivakumar-77, as this PR seems stale, shall we close it, or are you still working on it?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
needs-ci
PRs that need a full CI run.
test_runner
Issues and PRs related to the test runner subsystem.
Milestone
No milestone
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.
|