sorry-cypress
  • Documentation
  • Guide
    • Get Started
    • Dashboard and API
    • Cloud Setup
  • Cloud
    • AWS
      • Basic AWS Setup
      • Advanced AWS Setup
      • AWS Networking
      • AWS S3 Manual Setup
    • Google Cloud
      • Google Cloud & MinIO - Deprecated
    • Microsoft Azure
    • Heroku
    • Kubernetes
    • Docker Images
  • Integrating Cypress
    • Integration options
    • cy2 - Deprecated
    • Agent Configuration - Deprecated
    • CLI One Liners - Deprecated
  • Configuration
    • Basic Setup
    • Full Setup
    • Director Service
      • AWS Role Assumption via Service Account
      • AWS S3 Configuration
      • Minio Configuration
      • Azure Blob Storage Configuration
    • API Service
    • Web Dashboard
      • Configuration
    • MongoDB Configuration
    • Troubleshooting
  • Integrations
    • Events
    • Webhooks
    • Slack Integration
    • GitHub Integration
    • BitBucket Integration
    • MS Teams Integration
  • Concepts
    • Parallelization Explained
    • Flaky Tests
    • Test Details
    • Test Status
  • CI
    • GitHub Actions
    • Travis
    • Jenkins
    • AWS Codebuild
  • Development
    • Changelog
    • Development Guide
  • Community Content
  • ❤️ Contributions
  • Support
  • Legal
  • FAQ
Powered by GitBook
On this page
Edit on GitHub
  1. Integrating Cypress

cy2 - Deprecated

PreviousIntegration optionsNextAgent Configuration - Deprecated

Last updated 1 year ago

Cypress introduced a breaking change in version 12. Please usecypress-cloud integration package.

cy2 is deprecated.

cy2 is an that Integrates Cypress with alternative cloud services like Sorry Cypress or Currents by setting the environment variable CYPRESS_API_URL.

The command passes down to cypress all the CLI flags, so you can just use it instead of cypress

$ npm install -g cy2

$ export CYPRESS_API_URL="https://sorry.yourdomain.com/"
$ cy2 run --record --key XXX --parallel --ci-build-id `date +%s`
  • Running the command above will invoke your default cypress version with the flags you've provided. It will also modify the internal cypress configuration to use a different API URL.

  • If no URL is provided, it will use the default cypress package configuration

  • On Windows set CYPRESS_API_URL in the CMD shell with set CYPRESS_API_URL=https://sorry.yourdomain.com/ (Don't use quotes (") because the Windows CMD takes them literally unlike the Linux shells)

MacOS Ventura users:

Running `cy2` in an interactive shell can fail with EPERM: operation not permitted unless you need to explicitly allow the shell app to modify other applications.

Add the shell app of your choice to the allowed list.

Mac OS Settings > Privacy and Security > App Management


NPM package
cy2 EPERM - adding shell to App Management allowed list