Cypress config for ci

This commit is contained in:
Jamie Curnow 2023-05-31 11:56:48 +10:00
parent e7791c2a0f
commit da82020be4
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
3 changed files with 22 additions and 28 deletions

22
test/cypress/config/ci.js Normal file
View File

@ -0,0 +1,22 @@
const { defineConfig } = require('cypress');
module.exports = defineConfig({
requestTimeout: 30000,
defaultCommandTimeout: 20000,
reporter: 'cypress-multi-reporters',
reporterOptions: {
configFile: 'multi-reporter.json'
},
videosFolder: 'results/videos',
screenshotsFolder: 'results/screenshots',
env: {
swaggerBase: '{{baseUrl}}/api/schema',
RETRIES: 4
},
e2e: {
// baseUrl: '{{baseUrl}}',
setupNodeEvents(on, config) {
return require('../plugins/index.js')(on, config);
},
}
});

View File

@ -1,14 +0,0 @@
{
"requestTimeout": 30000,
"defaultCommandTimeout": 20000,
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "multi-reporter.json"
},
"videosFolder": "results/videos",
"screenshotsFolder": "results/screenshots",
"env": {
"swaggerBase": "{{baseUrl}}/api/schema",
"RETRIES": 4
}
}

View File

@ -1,14 +0,0 @@
{
"requestTimeout": 30000,
"defaultCommandTimeout": 20000,
"reporter": "cypress-multi-reporters",
"reporterOptions": {
"configFile": "multi-reporter.json"
},
"videos": false,
"screenshotsFolder": "results/screenshots",
"env": {
"swaggerBase": "{{baseUrl}}/api/schema",
"RETRIES": 0
}
}