mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
update e2e config to generate json report
This commit is contained in:
parent
f2c96cb6ae
commit
6fee4a9c7d
@ -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,
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user