cypress-cloud
Setup and usage instruction for cypress-cloud
Please refer to the most recent documentation published in the GitHub repository
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 Currents 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
cypress.config.ts
// 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;
},
},
});
import { defineConfig } from "cypress";
import currents from "cypress-cloud/plugin";
export default defineConfig({
e2e: {
// ...
async setupNodeEvents(on, config) {
const result = await currents(on, config);
return result;
},
}
});
require("cypress-cloud/support");
npx cypress-cloud --parallel --record --key your_key --ci-build-id hello-cypress-cloud
Please refer to the most recent documentation published in the GitHub repository
Last modified 4d ago