Playwright in Pictures: Fully Parallel Mode — DeepSeek Blog | Neura Market
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityTrendingGenerate
    DeepSeekBlogPlaywright in Pictures: Fully Parallel Mode
    Back to Blog
    Playwright in Pictures: Fully Parallel Mode
    playwright

    Playwright in Pictures: Fully Parallel Mode

    Vitaliy Potapov April 15, 2026
    0 views

    Playwright’s fullyParallel mode is often treated as a simple performance switch. In practice, it...

    Playwright’s [`fullyParallel`](https://playwright.dev/docs/api/class-testproject#test-project-fully-parallel) mode is often treated as a simple performance switch. In practice, it changes how the runner schedules work, which leads to different execution shapes for the same test suite. In this post I’ll show a visual comparison of different modes and highlight when fully parallel is slower. ## Example Setup I use a minimal suite: * `spec1.test.ts` → 1 test * `spec2.test.ts` → 5 tests * `workers` → 2 This setup is enough to expose how scheduling works. ## Non-Fully Parallel By default, Playwright assigns entire files to workers. Once a worker picks a file, it runs all tests in that file in order. Running the example suite: ```shell npx playwright test --workers 2 ``` produces the following timeline: [![Non fully parallel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h50p585pvwc5dn1w2fxn.png)](https://vitalets.github.io/playwright-demos/fully-parallel/timeline-report/non-fully-parallel.html) > <small>Click the screenshot to open the [live report](https://vitalets.github.io/playwright-demos/fully-parallel/timeline-report/non-fully-parallel.html) ↗</small> In this setup, `Worker 1` runs the single test from `spec1`, while `Worker 2` executes all 5 tests from `spec2`. Tests inside a file cannot move to another worker. Even if one worker is idle, it cannot pick up remaining tests from other running files. In practice, the total run time is defined by the longest file, not by the total amount of work. ## Fully Parallel With `--fully-parallel` enabled, Playwright schedules individual tests instead of files. File boundaries stop mattering. Workers take the next available test. Running the example suite with `--fully-parallel`: ```shell npx playwright test --workers 2 --fully-parallel ``` The timeline: [![Fully parallel timeline](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wocffuc10nfgmtsrin40.png)](https://vitalets.github.io/playwright-demos/fully-parallel/timeline-report/fully-parallel.html) With the same setup, the 5 tests from `spec2` are split across both workers, keeping the timeline balanced. The total run time drops from **5.6s** to **3.5s**. This shifts the execution model. It now follows individual tests instead of the longest file. ## Is Fully Parallel Always Faster? No. Fully parallel mode may be slower if tests rely on heavy worker hooks or worker fixtures. To illustrate this, I added a heavy `beforeAll` hook to `spec2`: ```ts test.beforeAll(async () => { await expensiveSetup() }); ``` Running the tests without fully parallel: [![Non fully parallel with hook](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ssxnigvwmzlz0c5sciym.png)](https://vitalets.github.io/playwright-demos/fully-parallel/timeline-report/non-fully-parallel-with-hook.html) The `beforeAll` setup cost (yellow bar) is paid once in `Worker 2` and reused across all tests in that file. Now run the same suite with `--fully-parallel`: [![Fully parallel with hook](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yepnf2gs9ze7ger1z2qw.png)](https://vitalets.github.io/playwright-demos/fully-parallel/timeline-report/fully-parallel-with-hook.html) Here, `beforeAll` runs twice, once per worker. As the number of workers grows, the setup is repeated more times. Total run time increases from **15s** to **20s** after enabling fully parallel mode. When setup dominates test time, `--fully-parallel` makes the run slower. ## Key Takeaways * By default, Playwright runs tests per file: files are split across workers, tests inside a file run sequentially. * With fully parallel mode, tests are split across workers and run independently. * Fully parallel mode can slow tests down. Check your test distribution and setup before enabling it.

    Tags

    playwrighttestingwebdevautomation

    Comments

    More Blog

    View all
    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠ai

    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠

    Hi everyone! 👋 I’m Tara, a Senior Software Engineer and Consultant. Over the years, I've jumped...

    T
    tworrell
    Local AI Will Save Us All (The Math Says So, Trust Me)ai

    Local AI Will Save Us All (The Math Says So, Trust Me)

    Every few weeks a take goes viral in tech circles making the case for ditching cloud AI and running...

    S
    Sebastian Schürmann
    Lost in the AI Hype, I Started Smallai

    Lost in the AI Hype, I Started Small

    And it helped me get back into tech without drowning TL;DR at the end Coming back to...

    R
    Rohini Gaonkar
    Building a Replay-Tested Interactive Brokers Client in Gogo

    Building a Replay-Tested Interactive Brokers Client in Go

    I wanted an IBKR library that felt like Go and had testing I could trust. So I wrote one.

    T
    Thomas Marcelis
    Designing a CLI for Both Humans and Agentscli

    Designing a CLI for Both Humans and Agents

    Learn how Alpic designed its CLI for both human developers and AI agents — covering tradeoffs like polling, context windows, interactivity, and statelessness.

    J
    Julien Vallini
    Shik — I finally feel joy writing scriptsprogramming

    Shik — I finally feel joy writing scripts

    You know that feeling when the thought in your head is simple and clear — "go through files, find the...

    M
    Maksim Iakovlev

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.