-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] The merge-reports
command does not work.
#26541
Comments
You need to install your dependencies (including I created #26542 which will give us a better error message compare to unknown command. |
Yeah, that solved it, but only with npm - it still doesn't work with pnpm. See these two traces: npmλ ~/ mkdir playwright-command-issue-npm
λ ~/ cd playwright-command-issue-npm
λ ~/playwright-command-issue-npm/ npm init -y
Wrote to /Users/radekmie/playwright-command-issue-npm/package.json:
{
"name": "playwright-command-issue-npm",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Radosław Miernik <REDACTED>",
"license": "ISC"
}
λ ~/playwright-command-issue-npm/ npm i playwright
added 2 packages in 373ms
λ ~/playwright-command-issue-npm/ npx playwright merge-reports
error: unknown command 'merge-reports'
λ ~/playwright-command-issue-npm/ npm i @playwright/test
added 3 packages in 337ms
λ ~/playwright-command-issue-npm/ npx playwright merge-reports
Error: No report files found in /Users/radekmie/playwright-command-issue-npm
at createMergedReport (/Users/radekmie/playwright-command-issue-npm/node_modules/@playwright/test/lib/reporters/merge.js:44:38)
at mergeReports (/Users/radekmie/playwright-command-issue-npm/node_modules/@playwright/test/lib/cli.js:178:3)
at i.<anonymous> (/Users/radekmie/playwright-command-issue-npm/node_modules/@playwright/test/lib/cli.js:93:7)
λ ~/playwright-command-issue-npm/ pnpmλ ~/ mkdir playwright-command-issue-pnpm
λ ~/ cd playwright-command-issue-pnpm
λ ~/playwright-command-issue-pnpm/ npm init -y
Wrote to /Users/radekmie/playwright-command-issue-pnpm/package.json:
{
"name": "playwright-command-issue-pnpm",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "Radosław Miernik <REDACTED>",
"license": "ISC"
}
λ ~/playwright-command-issue-pnpm/ npm i -g pnpm
added 1 package in 456ms
1 package is looking for funding
run `npm fund` for details
λ ~/playwright-command-issue-pnpm/ pnpm i playwright
zsh: correct 'pnpm' to 'npm' [nyae]? n
Packages: +2
++
Packages are copied from the content-addressable store to the virtual store.
Content-addressable store is at: /Users/radekmie/Library/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 2, reused 0, downloaded 2, added 2, done
node_modules/.pnpm/[email protected]/node_modules/playwright: Running install scnode_modules/.pnpm/[email protected]/node_modules/playwright: Running install script, done in 111ms
dependencies:
+ playwright 1.37.1
Done in 1s
λ ~/playwright-command-issue-pnpm/ pnpm exec playwright merge-reports
error: unknown command 'merge-reports'
λ ~/playwright-command-issue-pnpm/ pnpm i @playwright/test
Packages: +3
+++
Progress: resolved 5, reused 2, downloaded 3, added 3, done
dependencies:
+ @playwright/test 1.37.1
Done in 687ms
λ ~/playwright-command-issue-pnpm/ pnpm exec playwright merge-reports
error: unknown command 'merge-reports'
λ ~/playwright-command-issue-pnpm/ I know it's a bare report, but I've tried updating Playwright to 1.37.0 (and 1.37.1), and while it works ( Should I report a separate issue then? |
You don't need to install |
It helped, thanks! But it’s weird that it breaks with |
System info
Source code
Config file
N/A
Test file (self-contained)
N/A
Steps
merge-reports
command.Expected
The command should be there and work as documented.
Actual
The command is not detected and an error is thrown:
The text was updated successfully, but these errors were encountered: