Skip to content

test_runner: add context subtests expectFailure only skip todo#62263

Open
JakobJingleheimer wants to merge 2 commits intonodejs:mainfrom
JakobJingleheimer:test-runner/fix/subtest-context
Open

test_runner: add context subtests expectFailure only skip todo#62263
JakobJingleheimer wants to merge 2 commits intonodejs:mainfrom
JakobJingleheimer:test-runner/fix/subtest-context

Conversation

@JakobJingleheimer
Copy link
Member

@JakobJingleheimer JakobJingleheimer commented Mar 15, 2026

Closes #61251
Closes #62156
Fixes #50665

Co-Authored-By: Heath Dutton🕴️ <heathdutton@linux.com>
Co-Authored-By: Felipe <60716370+felipeness@users.noreply.github.com>
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Mar 15, 2026
@JakobJingleheimer JakobJingleheimer moved this to In Progress in Test Runner Board Mar 15, 2026
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.65%. Comparing base (1989f4d) to head (d5e777d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #62263      +/-   ##
==========================================
- Coverage   89.65%   89.65%   -0.01%     
==========================================
  Files         676      676              
  Lines      206555   206564       +9     
  Branches    39547    39550       +3     
==========================================
- Hits       185195   185189       -6     
- Misses      13495    13509      +14     
- Partials     7865     7866       +1     
Files with missing lines Coverage Δ
lib/internal/test_runner/test.js 95.80% <100.00%> (-1.01%) ⬇️

... and 26 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.

@atlowChemi atlowChemi added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Mar 15, 2026

test = ObjectAssign((...args) => this.#runTest(...args), {
__proto__: null,
expectFailure: (name, opts, fn) => this.#runTest(name, opts, fn, { __proto__: null, expectFailure: true }),
Copy link
Member

Choose a reason for hiding this comment

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

Missing docs for this one

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_runner Issues and PRs related to the test runner subsystem.

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

test runner (--test, node:test) subtest test context lack .skip, .only and .todo functions

6 participants