-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: adding colors to the xs and dots in the dot test runner #53450
Conversation
Review requested:
|
const { formatTestReport } = require('internal/test_runner/reporter/utils'); | ||
const { red, white, green, clear } = require('internal/util/colors'); |
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 avoid destructuring here so colors.refresh
will still work
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.
@MoLow thanks for the super prompt response :)
I applied the code change, but I don't see any reference to colors.refresh
, can you pinpoint me to the right place?
IIRC isn't there a PR already open doing this? Maybe one or the other should be closed in favor? |
yeah I noticed, but I pushed mine forward anyway because the creator or the other PR didn't push in the last 2 months |
No problem! If this gets merged, I'll close the other one. |
const { formatTestReport } = require('internal/test_runner/reporter/utils'); | ||
const colors = require('internal/util/colors'); |
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.
This seems like an unrelated change, could you revert it? (The import existed already in the line above)
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.
@atlowChemi done!
Good work on pushing the progress! (Just a thought - I think the origin author might deserve a co-author in the commit message? As the change looks quite identical). |
@puskin94 the PR changes the |
8c23d44
to
73885f8
Compare
73885f8
to
68aa96e
Compare
@atlowChemi it took me a bit to understand the right order of execution of the commands, but we should be there now :) Thanks! |
Can anyone help me out here? I see the PR is stuck and I guess it is because of broken jenkins tests... Thanks in advance! |
well this is an example of a failure:
it seems the CI doesn't always run in a TTY so output is not colored. you should probably add this snippet to emulate coloring in all envs: node/test/fixtures/test-runner/output/default_output.js Lines 1 to 4 in 5905596
|
Is this MR waiting for something else before "Landing" ? I am reading the docs and it looks like I have all the required steps? Or am I missing something? |
PR-URL: nodejs#53450 Fixes: nodejs#51770 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Landed in 8536b67 |
Fixes: #51770
Making sure that, when executing the dot test reporter, dots are white and Xs are red, for better visibility