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-circleci-reporter
Advanced tools
Cypress test reporter for CircleCI based on mocha-junit-reporter. Helps with test parallelization.
$ npm install cypress-circleci-reporter mocha --save-dev
$ yarn add cypress-circleci-reporter mocha --dev
After installing the reporter, you'll need to modify your config to use it:
run_cypress_tests:
parallelism: 3 # or any other number that suits your needs
steps:
# some previous steps
- run:
name: Run cypress tests
command: yarn cypress run --spec "$(circleci tests glob "./cypress/integration/**/*.spec.js" | circleci tests split --split-by=timings | paste -sd "," -)" --reporter cypress-circleci-reporter
- store_test_results:
path: test_results
- store_artifacts:
path: test_results
First test run with this config should create and store reports for each test file. These will be used during next runs to determine timings of each test. CircleCI will then split the test files between available containers to speed up the process.
Options can be passed to the reported by adding --reporter-options
parameter to the CLI command.
Example: --reporter cypress-circleci-reporter --reporter-options "resultsDir=./results/cypress,resultFileName=result-[hash]"
Parameter | Default | Effect |
---|---|---|
project | undefined | If you use Cypress' project parameter, this should be set to the same value. |
resultsDir | ./test_results/cypress | Name of the directory that reports will be saved into. |
resultFileName | cypress-[hash] | Name of the file that will be created for each test run. Must include [hash] string as each spec file is processed completely separately during each cypress run execution. |
FAQs
Cypress test reporter for CircleCI
The npm package cypress-circleci-reporter receives a total of 96,514 weekly downloads. As such, cypress-circleci-reporter popularity was classified as popular.
We found that cypress-circleci-reporter demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.