const cypress = require('cypress');
const qasePlugin = require('cypress-qase-reporter/plugin');
const qaseMetadata = require('cypress-qase-reporter/metadata');
module.exports = {
reporter: 'cypress-multi-reporters',
reporterOptions: {
reporterEnabled: 'cypress-qase-reporter',
cypressQaseReporterReporterOptions: {
mode: "testops",
debug: true,
testops: {
api: {
token: '<app-token>', // Replace with your Cypress app token
},
project: '<prj-code>', // Replace with your Qase project code
uploadAttachments: true,
run: {
complete: true,
},
},
framework: {
cypress: {
screenshotsFolder: 'cypress/screenshots',
}
}
},
},
video: false,
e2e: {
setupNodeEvents(on, config) {
qasePlugin(on, config);
qaseMetadata(on);
},
},
};