Skip to content

test_runner: display dot report as wide as the terminal width - #48038

Merged
nodejs-github-bot merged 6 commits into
nodejs:mainfrom
rluvaton:display-dot-test-report-as-wide-as-the-terminal
May 23, 2023
Merged

test_runner: display dot report as wide as the terminal width#48038
nodejs-github-bot merged 6 commits into
nodejs:mainfrom
rluvaton:display-dot-test-report-as-wide-as-the-terminal

Conversation

@rluvaton

@rluvatonrluvaton commented May 16, 2023

Copy link
Copy Markdown
Member

I had a problem with PR #47901 so recreating it

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels May 16, 2023
Comment threadtest/fixtures/test-runner/output/dot_output_custom_columns.js Outdated
Comment threadtest/fixtures/test-runner/output/dot_output_custom_columns.js Outdated
Comment threadlib/internal/test_runner/reporter/dot.js Outdated
Comment threadlib/internal/test_runner/reporter/dot.js Outdated
Co-authored-by: Moshe Atlow <moshe@atlow.co.il>
@MoLowMoLow 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 May 19, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 19, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadtest/fixtures/test-runner/output/dot_output_custom_columns.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@MoLowMoLow added the request-ci Add this label to start a Jenkins CI on a PR. label May 21, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 21, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

yield 'X';
}
if ((type === 'test:fail' || type === 'test:pass') && ++count % 20 === 0) {
if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could the ++count === columns be nested inside of the top level if? That way we only need to call getLineLength() once from there.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

The need to call again is in case of resize of the terminal

Comment threadtest/fixtures/test-runner/output/dot_output_custom_columns.js Outdated
Comment threadtest/fixtures/test-runner/output/dot_output_custom_columns.js Outdated
rluvatonand others added 2 commits May 22, 2023 07:56
@MoLow
MoLow requested a review from cjihrigMay 22, 2023 15:51
@MoLowMoLow added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels May 22, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 22, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@MoLowMoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label May 23, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 23, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 7e0c12f into nodejs:mainMay 23, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 7e0c12f

targos pushed a commit that referenced this pull request May 30, 2023
PR-URL: #48038
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@targostargos mentioned this pull request Jun 4, 2023
@rluvaton
rluvaton deleted the display-dot-test-report-as-wide-as-the-terminal branch June 28, 2023 17:40
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
PR-URL: #48038
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
PR-URL: nodejs#48038
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
PR-URL: nodejs#48038
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
PR-URL: nodejs#48038
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.needs-ciPRs that need a full CI run.test_runnerIssues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@rluvaton@nodejs-github-bot@cjihrig@MoLow@aduh95