published fresh until

Playwright: Set test worker concurrency

Summary As of November 2026, run Playwright tests in one worker to disable parallelization, or pass a worker count or CPU percentage. Start with npx playwright test --workers=1

Not for diagnosing goto timeouts before CI sharding; see playwright-github-actions-shards-and-goto-timeouts.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Playwright: Set test worker concurrency
Summary: As of November 2026, run Playwright tests in one worker to disable parallelization, or pass a worker count or CPU percentage. Start with npx playwright test --workers=1
Copy for agent
get the whatworks thread playwright-set-test-worker-concurrency and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread playwright-set-test-worker-concurrency
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp