Skip to content

test: use common/child_process spawnSync helpers - #65377

Open
ganjanggejang wants to merge 1 commit into
nodejs:mainfrom
ganjanggejang:spawnsync-helpers
Open

test: use common/child_process spawnSync helpers#65377
ganjanggejang wants to merge 1 commit into
nodejs:mainfrom
ganjanggejang:spawnsync-helpers

Conversation

@ganjanggejang

Copy link
Copy Markdown
Contributor

Replace manual spawnSync() result assertions with
spawnSyncAndExitWithoutError(), spawnSyncAndExit() and
spawnSyncAndAssert() from test/common/child_process.

This also removes hand-rolled if (status !== 0) console.log(...)
blocks that duplicate what the helpers already do, and adds a
signal check to call sites that previously only compared status.

Follow-up to #65351, applying the same change to the remaining sync spawn call sites.

Replace manual spawnSync() result assertions
with test/common/child_process helper functions.

Signed-off-by: Junsoo Ha <junsoo2018@naver.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Aug 18, 2026
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (cf30b2e) to head (aa7f940).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65377      +/-   ##
==========================================
+ Coverage   90.11%   90.13%   +0.02%     
==========================================
  Files         752      752              
  Lines      251861   251861              
  Branches    47365    47362       -3     
==========================================
+ Hits       226955   227011      +56     
+ Misses      16238    16184      -54     
+ Partials     8668     8666       -2     

see 36 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants