wct-parallel
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.3 • Public • Published

    wct-parallel

    Web Component Tester plugin that allows running tests across multiple browser instances in parallel.

    Installation and usage

    wct-parallel can be installed via:

    npm install --save-dev wct-parallel
    

    You can then add the plugin in your WCT Configuration or enable it via the --plugin wct-parallel CLI option.

    Configuration

    By default, the plugin will spawn one browser instance per CPU for each configured browser. This can be changed in various ways:

    1. Set default number of instances (for every browser) explicitly
    2. Set number of instances per browser
    3. Set browsers to enable the plugin for

    Config option instances

    • Type: number
    • Default: Number of CPUs

    Defines the number of browser instances to spawn. Note: this option is ignored when browsers is set.

    Cinfig option browsers

    • Type: string[] | BrowserOptions[] (see below for BrowserOptions)

    When used as a string[]: defines browser names to enable the plugin for.

    When used as BrowserOptions[]: number of instances to spawn per browser; spawns 1 for all other browsers.

    interface BrowserOptions {
      browserName: string; // Name of browser to configure
      instances?: number; // Number of instances to spawn for this browser; defaults to global instances setting
    }

    CLI options

    Option Type Description
    -i / --instances number Number of browser instances to spawn

    Install

    npm i wct-parallel

    DownloadsWeekly Downloads

    8

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    20.3 kB

    Total Files

    15

    Last publish

    Collaborators

    • jimivdw