Socket
Book a DemoInstallSign in
Socket

parallel-testing

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parallel-testing

parallel-testing allows the execution of any test frameworks in parallel, dramatically reducing the execution time.

1.0.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

parallel-testing

Build Status

parallel-testing allows the execution of any test frameworks in parallel, dramatically reducing the execution time.

Usage

Install parallel-testing package

npm install parallel-testing --save-dev

Add parallel-testing command to package.json scripts

{
    ...,
    scripts: {
        ...,
        "e2e": "parallel-testing --threads=<NUMBER> --test-cmd='<STRING>' --task-prefix='<STRING>' --specs='<STRING>' --specs-separator='<STRING>' --after-all-cmd='<STRING>'",
    },
    ....
}

parallel-testing args options

OptionDescription
--test-cmdCommand used to run tests.
Add @SPECS as a placeholder in the command; it will be replaced with a comma-separated list of specs.
Add @INSTANCE as a placeholder in the command; it will be replaced with a thread instance ID, useful for report directory names.
--task-prefixPrefix used for the logs.
--specsTest specs pattren, e.g: e2e/**/**.spec.js.
--specs-separatorTest spec files separator delimiter, e.g: ,.
--threadsNumber of parallel threads (Optional).
--max-threadsMaximum number of parallel threads (Optional).
--after-all-cmdCommand that runs after all tests are done.

parallel-testing with

Cypress

Running Cypress e2e tests parallel, please check Cypress Demo. The demo covers how to generate HTML report with screenshots and videos.

TypeTotalThreads
Serial57.8171s1
Parallel24.9825s5

cypress-e2e

Puppeteer

Running Puppeteer e2e tests parallel, please check Puppeteer Demo. The demo covers how to generate HTML report with screenshots.

TypeTotalThreads
Serial16.6492s1
Parallel8.8565s5

puppeteer-e2e

NOTE: Tests for each framework are different; please don't use these numbers to compare between these testing frameworks.

The demo statistics are generated using the Gnomon tool.

Keywords

parallel

FAQs

Package last updated on 11 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.