Skip to content

test: use spawnSyncAndAssert in windowsHide test - #65351

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

test: use spawnSyncAndAssert in windowsHide test#65351
ganjanggejang wants to merge 1 commit into
nodejs:mainfrom
ganjanggejang:replace-spawnsync

Conversation

@ganjanggejang

Copy link
Copy Markdown
Contributor

Replace the manual status, signal, stdout and stderr assertions with
spawnSyncAndAssert() from test/common/child_process.

The previous code asserted the status first, so a CI failure only
reported the exit status and the child's output was never shown. On
failure the helper prints stdout, stderr, status, signal and the
command that was run.

Only changed sync spawn(), because there is no async helper yet.

Signed-off-by: Junsoo Ha <junsoo2018@naver.com>
@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 17, 2026
@aduh95 aduh95 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 Aug 17, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 17, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.11%. Comparing base (cc60845) to head (ab91b39).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65351      +/-   ##
==========================================
- Coverage   90.13%   90.11%   -0.02%     
==========================================
  Files         752      752              
  Lines      251820   251820              
  Branches    47352    47350       -2     
==========================================
- Hits       226974   226934      -40     
- Misses      16158    16229      +71     
+ Partials     8688     8657      -31     

see 52 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.

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 pending requests for changes, and a CI started. 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.

4 participants