Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
cypress-repeat
Advanced tools
Run Cypress multiple times in a row, great at finding test flake
Read Wrap Cypress Using NPM Module API and Retry, Rerun, Repeat.
npm i -D cypress-repeat
# or using Yarn
yarn add -D cypress-repeat
This module assumes the cypress
dependency v5.3.0+ has been installed.
npx cypress-repeat run -n <N> ... rest of "cypress run" arguments
Which will run Cypresss <N>
times, exiting after the first failed run or after all runs finish successfully.
You can flip the logic and run Cypress up to N times until the first successful exit
npx cypress-repeat run -n <N> --until-passes ... rest of "cypress run" arguments
You can rerun only the specs that failed
npx cypress-repeat run -n <N> --until-passes --rerun-failed-only ... rest of "cypress run" arguments
Every run has two utility variables injected
const n = Cypress.env('cypress_repeat_n') // total repeat attempts
const k = Cypress.env('cypress_repeat_k') // current attempt, starts with 1
// and is <= n
Run this script with environment variable DEBUG=cypress-repeat
to see verbose logs
This NPM module retries the entire Cypress run, if you need to retry just the failed tests, use the Test Retries.
FAQs
Run Cypress multiple times in a row
We found that cypress-repeat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.