Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
![npm downloads](https://img.shields.io/npm/dw/cy2?style=flat) [![AppVeyour](https://ci.appveyor.com/api/projects/status/8i4xhejvla6rhc3m/branch/master?svg=true)](https://ci.appveyor.com/project/agoldis/cy2/branch/master) [![CircleCI](https://circleci.com
Change cypress configuration to use an alternative dashboard service (Sorry Cypress or Currents).
Run millions of cypress tests in parallel without breaking the bank
Currents.dev - is a hosted cloud service that hundreds of companies around the globe use to run millions of Cypress tests without breaking the bank. This is an enhanced version of Sorry Cypress with a better security, performance, analytics, integrations and support.
Sorry Cypress is an open-source, free alternative to Cypress Dashboard that unlocks unlimited parallelization, test recordings, integration with GitHub, Slack and more.
cy2
wil read the environment variable CYPRESS_API_URL
and change cypress configuration accordingly. It passes down all the CLI flags as-is and runs cypress with all the flags.
CYPRESS_API_URL
should point to Sorry Cypress director service, Currents dashboard or other compatible service.
npm install cy2
CLI usage
# use `http://localhost:1234` as Cypress Dashboard
CYPRESS_API_URL="http://localhost:1234/" cy2 run --parallel --record --key somekey --ci-build-id hello-cypress
Example usage with sorry-cypress
CYPRESS_API_URL="https://sorry-cypress-demo-director.herokuapp.com" cy2 run --parallel --record --key somekey --ci-build-id hello-cypress
Starting version 3+, the API methods run
and patch
rely on process.env.CYPRESS_API_URL
instead of accepting an argument. That's because of a new patching method that doesn't permanently change cypress configuration after invoking cy2
.
patch(cypressPackageEntryPath: string) => Promise<void>
⚠️ Make sure to set process.env.CYPRESS_API_URL
before invoking patch
import { patch } from 'cy2';
import cypress from 'cypress';
process.env.CYPRESS_API_URL = 'https://dashboard.service.url';
async function main() {
// optional - provide cypress package main entry point location
await patch(require.resolve('cypress'));
cypress
.run({
// the path is relative to the current working directory
spec: './cypress/e2e/examples/actions.cy.js',
})
.then((results) => {
console.log(results);
})
.catch((err) => {
console.error(err);
});
}
main().catch((error) => {
console.error(error);
process.exit(1);
});
FAQs
Integrate Cypress with alternative cloud services like Sorry Cypress or Currents
The npm package cy2 receives a total of 118,913 weekly downloads. As such, cy2 popularity was classified as popular.
We found that cy2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.