Gathering detailed insights and metrics for cypress-parallel
Gathering detailed insights and metrics for cypress-parallel
Gathering detailed insights and metrics for cypress-parallel
Gathering detailed insights and metrics for cypress-parallel
Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
npm install cypress-parallel
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
589 Stars
212 Commits
124 Forks
15 Watching
6 Branches
20 Contributors
Updated on 27 Nov 2024
JavaScript (71%)
TypeScript (21.91%)
SCSS (5%)
CSS (1.54%)
HTML (0.45%)
Sass (0.1%)
Cumulative downloads
Total Downloads
Last day
-7.1%
23,612
Compared to previous day
Last week
1.1%
131,786
Compared to previous week
Last month
15.2%
581,751
Compared to previous month
Last year
49.3%
5,509,175
Compared to previous year
1
Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
cypress | cypress-parallel |
---|---|
🔍 - Search for existing Cypress tests
📄 - Read (if exists) a weight file
⚖️ - Split spec files into different threads
⚙️ - For each thread it runs the Cypress command you've passed as argument
📈 - Wait for all threads to finish and collects the result in a single report
npm i cypress-parallel -D
or
yarn add cypress-parallel -D
In your package.json
add a new script:
1"scripts" :{ 2 ... 3 "cy:run": "cypress run", // It can be any cypress command with any argument 4 "cy:parallel" : "cypress-parallel -s cy:run -t 2 -d '<your-cypress-specs-folder>' -a '\"<your-cypress-cmd-args>\"'" 5 ... 6}
Sample:
-a '\"--config baseUrl=http://localhost:3000\"'
npm run cy:parallel
or
Run with npx (no package installation needed)
npx cy:parallel -s cy:run -t 2 -d '<your-cypress-specs-folder>' -a '"<your-cypress-cmd-args>"'
cypress-parallel -s cy:run -t 2 -a '\"<your-cypress-cmd-args>\"' --spec path/to/spec1.spec.js path/to/spec2.spec.js
Option | Alias | Description | Type |
---|---|---|---|
--help | Show help | ||
--version | Show version number | ||
--script | -s | Your npm Cypress command | string |
--args | -a | Your npm Cypress command arguments | string |
--threads | -t | Number of threads | number |
--specsDir | -d | Cypress specs directory | string |
--spec | Cypress spec file paths | string | |
--weightsJson | -w | Parallel weights json file | string |
--reporter | -r | Reporter to pass to Cypress. | string |
--reporterOptions | -o | Reporter options | string |
--reporterModulePath | -n | Specify the reporter module path | string |
--bail | -b | Exit on first failing thread | string |
--verbose | -v | Some additional logging | string |
--strictMode | -m | Add stricter checks after running the tests | boolean |
NB: If you use cypress-cucumber-preprocesor, please disable the strictMode to avoid possible errors:
1"scripts" :{ 2 ... 3 "cy:parallel" : "cypress-parallel -s cy:run -t 4 -m false" 4 ... 5}
NB: If your cypress-multi-reporters module is not found on the same level as your Cypress suite (e.g. in a mono-repo) then you can specify the module directory for Cypress to search within.
1"scripts" :{ 2 ... 3 "cy:parallel" : "cypress-parallel -s cy:run -t 4 -n .../../../node_modules/cypress-multi-reporters" 4 ... 5}
You can get the current thread index by reading the CYPRESS_THREAD
variable.
1 const threadIndex = process.env.CYPRESS_THREAD; 2 // return 1, 2, 3, 4, ...
Looking for contributors.
This project is licensed under the MIT license. See LICENSE.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
Found 5/22 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More