33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
const { defineConfig } = require('cypress');
|
|
|
|
module.exports = defineConfig({
|
|
e2e: {
|
|
baseUrl: 'http://localhost:8080/',
|
|
supportFile: 'src/test/cypress/support/index.js',
|
|
fixturesFolder: 'src/test/cypress/fixtures',
|
|
specPattern: 'src/test/cypress/integration/**/*.spec.js',
|
|
viewportHeight: 660,
|
|
viewportWidth: 1240,
|
|
experimentalMemoryManagement: true,
|
|
numTestsKeptInMemory: 0,
|
|
video: 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) {
|
|
require('cypress-mochawesome-reporter/plugin')(on);
|
|
on('after:spec', (spec, results) => {
|
|
console.log('Finished running', spec.relative);
|
|
console.log('❌spec:', results.stats.failures);
|
|
console.log('✅spec:', results.stats.passes);
|
|
});
|
|
}
|
|
}
|
|
});
|