0
1
Fork 0

feat: cypress reporter

This commit is contained in:
Javier Segarra 2024-11-12 17:47:21 +01:00
parent f27dd79dcc
commit 8863b6428c
1 changed files with 11 additions and 0 deletions

View File

@ -12,9 +12,20 @@ module.exports = defineConfig({
numTestsKeptInMemory: 0, numTestsKeptInMemory: 0,
video: false, video: false,
screenshotOnRunFailure: false, screenshotOnRunFailure: false,
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
charts: true,
reportPageTitle: 'Hedera-Web E2E Reporter',
embeddedScreenshots: true,
reportDir: 'src/test/cypress/reports',
inlineAssets: true
},
setupNodeEvents(on, config) { setupNodeEvents(on, config) {
require('cypress-mochawesome-reporter/plugin')(on);
on('after:spec', (spec, results) => { on('after:spec', (spec, results) => {
console.log('Finished running', spec.relative); console.log('Finished running', spec.relative);
console.log('❌spec:', results.stats.failures);
console.log('✅spec:', results.stats.passes);
}); });
} }
} }