mirror of
https://codeberg.org/beerbrawl/beerbrawl.git
synced 2024-09-23 01:30:52 +02:00
chore(#136): e2e: add coverage report
Signed-off-by: Christoph Heiss <e11907069@student.tuwien.ac.at>
This commit is contained in:
parent
6ccc52c02f
commit
2317c1e306
|
@ -76,8 +76,8 @@ e2e-test:
|
|||
- sleep 30
|
||||
- cd ../e2e
|
||||
- npm ci --legacy-peer-deps
|
||||
- npm run prettier:check
|
||||
- npx cypress run
|
||||
- npm run cypress
|
||||
- npm run coverage:ci
|
||||
artifacts:
|
||||
when: always
|
||||
expire_in: 1 hour
|
||||
|
|
|
@ -12,7 +12,9 @@ module.exports = defineConfig({
|
|||
// We've imported your old cypress plugins here.
|
||||
// You may want to clean this up later by importing these.
|
||||
setupNodeEvents(on, config) {
|
||||
return require('./cypress/plugins/index.js')(on, config);
|
||||
require('@cypress/code-coverage/task')(on, config);
|
||||
require('./cypress/plugins/index.js')(on, config);
|
||||
return config;
|
||||
},
|
||||
baseUrl: 'http://localhost:4200/',
|
||||
},
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
import './commands';
|
||||
import '@cypress/code-coverage/support';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
import './commands';
|
||||
|
|
4252
e2e/package-lock.json
generated
4252
e2e/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,13 +5,15 @@
|
|||
"main": "index.js",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"cypress": "13.7.3",
|
||||
"cypress": "13.11.0",
|
||||
"cypress-mochawesome-reporter": "3.8.2",
|
||||
"cypress-multi-reporters": "1.6.4",
|
||||
"@cypress/code-coverage": "^3.12.39",
|
||||
"mocha-junit-reporter": "2.2.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.2.5",
|
||||
"nyc": "^17.0.0",
|
||||
"prettier": "^3.3.2",
|
||||
"typescript": "^5.4.5"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -19,7 +21,8 @@
|
|||
"cypress": "cypress run",
|
||||
"cypress:open": "cypress open",
|
||||
"prettier:check": "prettier --check '**/*.{json,html,scss,ts,js}'",
|
||||
"prettier:fix": "prettier --write '**/*.{json,html,scss,ts,js}'"
|
||||
"prettier:fix": "prettier --write '**/*.{json,html,scss,ts,js}'",
|
||||
"coverage:ci": "nyc report --reporter=text-summary -t coverage --report-dir coverage/summary"
|
||||
},
|
||||
"author": "Heimo Stranner",
|
||||
"license": "ISC"
|
||||
|
|
Loading…
Reference in a new issue