Test Reporting Tool
npm install testopscenter-cypress
bash
npm i testopscenter-cypress
`
Add the 'reporter.connect(on, team_spkey)' method to the 'cypress.config.js' file as shown below, and enter the SPKEY value from your team information.
> If you want the version name to appear in the report, you can enter the version name in the 'version_name' field as shown below.
`javascript
// cypress.config.js
const { defineConfig } = require("cypress");
const reporter = require("testopscenter-cypress");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
let team_spkey = process.env.TEAM_SPKEY || "";
let version_name = process.env.VERSION_NAME || "Cypress";
reporter.connect(on,team_spkey,version_name)
},
},
});
``