Scripts from package.json: “scripts”: {
“all”: “npm-run-all debug1 debug2 merge-reports”,
“debug1”: “npx playwright test –grep @debug1 –workers=1”,
“debug2”: “npx playwright test –grep @debug2 –workers=3”,
“merge-reports”: “npx playwright merge-reports –reporter html ./blob-report”,
},
I need a script that will run all tests and adjust the number of workers depending on the tag. As a result, I should get one combined report. With the current implementation, I only get a report for the last script.
I tried using “merge-reports”, but when the execution of the ‘all’ script reaches “merge-reports”, the report from “debug2” overwrites “debug1”, and as a result, I only get the report from “debug2”.
Dmytro Bieliaiev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.