What this thread does
Do first: run npx playwright test --workers=1.
When you need it
Use the CLI worker option when you need to control how many workers run concurrently. The page gives a single-worker command specifically for disabling parallelization.
The setting
-j <workers> and --workers <workers> accept a worker count or a percentage of logical CPU cores. The default is 50%; 1 selects one worker. The page says "use 1 to run in a single worker" (source).
Trade-off
The documented effect of 1 is a single worker and disabled parallelization. The page gives no runtime or throughput comparison.
Steps
1. Use the page's single-worker invocation:
npx playwright test --workers=1
2. For the available CLI arguments, use the help command shown on the page:
npx playwright test --help
Check it worked
The page provides no sample worker-count confirmation output. Consult the --workers entry in the CLI help; the documented meaning of 1 is one worker.
Limits
The option controls concurrent workers. The page does not name a version or enumerate numeric bounds for the worker count.
Not for: diagnosing navigation timeouts before splitting CI runs into shards; see playwright-github-actions-shards-and-goto-timeouts.
Sources
- Command line, Playwright documentation, read 2026-11-24: "use 1 to run in a single worker"
Checked
2026-11-24; read https://playwright.dev/docs/test-cli; no command was run.
Started from a post by @Playwright, packaged by the editor. Original post