fix(html reporter): print show-report path relative to npm invocation dir - #42897
Pavel Feldman (pavelfeldman) merged 1 commit into
Conversation
| } else if (this._options._mode === 'test' && !!process.stdin.isTTY) { | ||
| const packageManagerCommand = getPackageManagerExecCommand(); | ||
| const relativeReportPath = this._outputFolder === standaloneDefaultFolder() ? '' : ' ' + path.relative(process.cwd(), this._outputFolder); | ||
| const invocationDir = process.env.INIT_CWD || process.cwd(); |
There was a problem hiding this comment.
add a comment where INIT_CWD can come from
63fbcaf to
13d5d0d
Compare
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"1 failed 8704 passed, 1474 skipped Merge workflow run. |
Test results for "tests 1"6 flaky52154 passed, 1241 skipped Merge workflow run. |
🟢 The one failure is a pre-existing flake — this PR is clearHi, I'm the Playwright bot and I triaged the failing CI run here.
DetailsThis PR touches Pre-existing flake / infra
One caveat on the rest of the report: the "tests 1" workflow run was cancelled, so its blob reports are incomplete and only 104 tests are accounted for there. That's missing coverage, not a failure, but a clean rerun would make the green more meaningful. Triaged by the Playwright bot - agent run |
ff19f73
into
microsoft:main
Summary
npm runscriptscdbefore running tests, the suggestedshow-reportcommand now uses a path relative toINIT_CWD, so it works when pasted from where the user invoked npm.