
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
cypress-parallel-retrier
Advanced tools
đź› Development in progress, beta version
process-rerunconst {buildExecutor} = require('cypress-parallel-retrier');
executeByFile();
async function executeByFile() {
const cwd = process.cwd();
const result = await buildExecutor(resolve(cwd, './path/to/specs'))
.byFile()
.command({'--process-argument': 'process-argument-value'}, {ENV_VARIABLE: 'en-varialbe-value'})
.executor({attemptsCount: 2, maxThreads: 5, logLevel: 'VERBOSE', longestProcessTime: 60 * 1000, pollTime: 100})
.execute();
console.log(result);
if(result.retriable.length || result.notRetriable.length) {
process.exit(1);
}
}
buildExecutor('./path/to/specs/folder')
| arguments | description |
|---|---|
pathToSpecFolderOrSpecsFilesList | Type: string or string[] Path to specs folder, or list (array) with specs files path; |
returns {byFile: function;}
buildExecutor(...args).byFile()
returns {command: function}
| arguments | description |
|---|---|
processArgs | Type: undefined or null or {[prop: string]: string} Object with required process argumentss, use format prop name with - or --, example '--prop' or '-p' |
processEnvVars | Type: undefined or null or {[prop: string]: string} Object with required process env variables, use format prop name upper snake_case, LOG_LEVEL |
returns {executor: function}
buildExecutor(...args).byFile(...args1).command().executor({maxThreads: 1, attemptsCount: 2, logLevel: 'ERROR'})
| arguments | description |
|---|---|
buildOpts | Type: object Options for executor |
buildOpts.maxThreads | Type: number, How many threads can be executed in same time Default threads count is 5 |
buildOpts.attemptsCount | Type: number, How many times can we try to execute command for success result in next cycle will be executed only faild command, success commands will not be reexecuted Default attempts count is 2 |
buildOpts.pollTime | Type: number , Period for recheck about free thread Default is 1 second |
buildOpts.logLevel | Type: string, one of 'ERROR', 'WARN', 'INFO', 'VERBOSE', ERROR - only errors, WARN - errors and warnings, INFO - errors, warnings and information, VERBOSE - full logging Default is 'ERROR' |
buildOpts.currentExecutionVariable | Type: string, will be execution variable with execution index for every cycle will be ++ |
buildOpts.everyCycleCallback | Type: function, Optional. everyCycleCallback will be executed after cycle, before next execution cycle. Default is false |
buildOpts.processResultAnalyzer | Type: function, Optional. processResultAnalyzer is a function where arguments are original command, execution stack trace and notRetriable array processResultAnalyzer should return a new command what will be executed in next cycle or null - if satisfactory result |
buildOpts.longestProcessTime | Type: number, In case if command execution time is longer than longest Process Time - executor will kill it automatically and will try to execute this command again. Default time is 45 seconds |
returns {execute: async function}
buildExecutor(...args).byFile(...args1).command().executor(...args2).execute()
returns {retriable: string[]; notRetriable: string[]}
FAQs
đź› Development in progress, beta version
The npm package cypress-parallel-retrier receives a total of 1 weekly downloads. As such, cypress-parallel-retrier popularity was classified as not popular.
We found that cypress-parallel-retrier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.