Relative Content

Tag Archive for automated-testspackage.jsonplaywrightnpm-scriptsplaywright-typescript

Playwright. How to run multiple test suites simultaneously with different numbers of workers?

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.