test_runner: add context subtests expectFailure only skip todo - #62263
JakobJingleheimer wants to merge 5 commits into
Conversation
Co-Authored-By: Heath Dutton🕴️ <heathdutton@linux.com> Co-Authored-By: Felipe <60716370+felipeness@users.noreply.github.com>
|
Review requested:
|
This reverts commit d5e777d.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #62263 +/- ##
==========================================
+ Coverage 89.65% 89.79% +0.13%
==========================================
Files 676 697 +21
Lines 206555 215809 +9254
Branches 39547 41306 +1759
==========================================
+ Hits 185195 193787 +8592
- Misses 13495 14112 +617
- Partials 7865 7910 +45
🚀 New features to boost your workflow:
|
|
Okee I finally figure out what is wrong: at Test.start (node:internal/test_runner/test:…)
- at TestContext.test (node:internal/test_runner/test:377:20)
+ at #runTest (node:internal/test_runner/test:378:20)
+ at test.ObjectAssign.__proto__ [as test] (node:internal/test_runner/test:383:59)
at TestContext.<anonymous> (<project-root>/test/fixtures/test-runner/output/hooks.js:197:11)
- at Test.runInAsyncScope (node:async_hooks:226:14)The problem is the new implementation replaces 1 entry ( There are 2 things to consider here:
|
|
This pull request has been marked as stale due to 90 days of inactivity. |
|
This pull request has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days). |
|
@JakobJingleheimer there's anything missing here apart from the test breaking due to the update in the call stack? I thought this was good to merge |
|
Correct, that's all. I can easily fix it, I just need some input on how it should be fixed. |
|
You likely just need to regenerate those snapshot tests, change in the call stack is not an issue To improve the call stack test, maybe you can move the ObjectAssign to constructor? class Test {
constructor(){
ObjectAssign(this.test, { only: ... })
}
test() { ... } |
|
It is an issue because the utility that composes the stack is limited to like 7 lines, and a maybe important line gets clipped. We need to decide whether to clip the line or expand the stack to include an extra line (which requires using a different utility, so a bit of refactoring) |

Closes #61251
Closes #62156
Fixes #50665