update e2e config to generate json report

This commit is contained in:
mahula 2023-07-05 09:47:19 +02:00
parent f2c96cb6ae
commit 6fee4a9c7d
2 changed files with 4 additions and 16 deletions

View File

@ -26,14 +26,6 @@ async function setupNodeEvents(
},
})
on('after:run', (results) => {
if (results) {
// results will be undefined in interactive mode
// eslint-disable-next-line no-console
console.log(results.status)
}
})
return config
}
@ -41,7 +33,6 @@ export default defineConfig({
e2e: {
specPattern: '**/*.feature',
excludeSpecPattern: '*.js',
experimentalSessionAndOrigin: true,
baseUrl: 'http://localhost:3000',
chromeWebSecurity: false,
defaultCommandTimeout: 10000,

View File

@ -8,22 +8,19 @@
"license": "Apache-2.0",
"private": false,
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true,
"stepDefinitions": "cypress/support/step_definitions/*.ts",
"json": {
"enabled": true,
"output": "cypress/json_logs/cucumber_log.json",
"output": "cypress/reports/json_logs/cucumber_log.json",
"formatter": "cucumber-json-formatter"
},
"messages": {
"enabled": true,
"output": "cypress/json_logs/messages.ndjson"
"output": "cypress/reports/json_logs/messages.ndjson"
},
"html": {
"enabled": false
},
"stepDefinitions": [
"cypress/e2e/step_definitions/*.{js,ts}"
]
}
},
"scripts": {
"cypress-e2e": "cypress run",