cypress-cloud

Setup and usage instruction for cypress-cloud

circle-info

Please refer to the most recent documentation published in the GitHub repository

https://github.com/currents-dev/cypress-cloudarrow-up-right

circle-exclamation

Setup

Install the package:

npm install cypress-cloud

Create a new configuration file: currents.config.js in the project’s root, set the projectId and the record key obtained from Currentsarrow-up-right or your self-hosted instance of Sorry Cypress:

// currents.config.js
module.exports = {
  projectId: "Ij0RfK",
  recordKey: "xxx",
  // Sorry Cypress users - set the director service URL
  cloudServiceUrl: "http://cy.currents.dev",
};

Add cypress-cloud/plugin to cypress.config.{j|t}s

// cypress.config.js
const { defineConfig } = require("cypress");
const { cloudPlugin } = require("cypress-cloud/plugin");
module.exports = defineConfig({
  e2e: {
    // ...
    async setupNodeEvents(on, config) {
      const result = await cloudPlugin(on, config);
      return result;
    },
  },
});

Add cypress-cloud/support to cypress supportarrow-up-right file

Setup with existing plugins

Please refer to our collection of guidesarrow-up-right for setting up cypress-cloud together with other plugins

Usage

See all the available options npx cypress-cloud --help. Learn more about CI Build IDarrow-up-right.

Documentation

circle-info

Please refer to the most recent documentation published in the GitHub repository

https://github.com/currents-dev/cypress-cloudarrow-up-right

Last updated

Was this helpful?