Cypress Utils is a command-line interface (CLI) tool designed to enhance the execution of Cypress tests by providing capabilities for parallelization and stress-testing. Its current stable version is 3.0.0, which introduced support for Cypress v10 and updated CLI options to mirror Cypress's own changes. The tool primarily aims to reduce local test run times by allowing multiple Cypress instances to run concurrently and helps identify flaky tests by executing them repeatedly under configurable conditions. It does not follow a fixed release cadence but typically updates to align with major Cypress version releases, ensuring compatibility. Key differentiators include its focus on simplifying parallel execution and stress testing directly from the command line, abstracting away the complexities of managing multiple Cypress processes manually.
npm install cypress-utilsVerified import paths — ran on the pinned version, not inferred.
Demonstrates `cypress-utils` installation and its usage via `package.json` scripts for parallel execution and stress-testing of Cypress specs, including example spec and direct `npx` commands.
Update any CLI calls or scripts to use `--specPattern` instead of `--integrationFolder`.
Ensure your project has Cypress v10.0.0 or higher installed. Refer to the Cypress migration guide for upgrading your Cypress setup.
Upgrade your Node.js environment to version 11.0.0 or higher to ensure compatibility.
Before upgrading `cypress-utils` to v2.0.0 or higher, ensure your Cypress setup is compatible with Cypress v5 or v6, following the Cypress Migration Guide.
Cypress must now be explicitly installed as a development dependency in your project (e.g., `npm install --save-dev cypress`) if it wasn't already.
Replace `--integrationFolder` with `--specPattern` in your command-line arguments or `package.json` scripts.
Update your project's Cypress dependency to version 10.0.0 or higher (e.g., `npm install cypress@latest --save-dev`).
Upgrade your Node.js environment to version 11.0.0 or newer.
Use `npx cypress-utils ...` or define a script in your `package.json` (e.g., `"test:parallel": "cypress-utils run-parallel"`) and run it with `npm run test:parallel`.