Open gibiw opened 1 month ago
Solution: use the cypress-multi-reporters
config.
Using other reporters is entirely optional: it works with multiple reporters and with just
import cypress from 'cypress';
import plugins from './cypress/plugins/index.js';
module.exports = cypress.defineConfig({
+ reporter: 'cypress-multi-reporters',
- reporter: 'cypress-qase-reporter',
reporterOptions: {
+ reporterEnabled: 'cypress-qase-reporter',
+ cypressQaseReporterReporterOptions: {
mode: 'testops'
debug: true,
testops: {
api: {
token: 'api_key',
},
project: 'project_code',
uploadAttachments: true,
run: {
complete: true,
},
},
framework: {
cypress: {
screenshotsFolder: 'cypress/screenshots',
}
}
},
+ },
video: false,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return plugins(on, config);
},
},
});
If you do not use
cypress-multi-reporters
, an error appears when running tests.Example of cypress config:
As a workaround use
cypress-multi-reporters
.