kopia lustrzana https://gitlab.com/rysiekpl/libresilient
cobertura test coverage data for test job (ref. #9)
rodzic
9d0155771c
commit
3295620ece
|
@ -1,3 +1,4 @@
|
|||
node_modules/
|
||||
radata/
|
||||
coverage/
|
||||
junit.xml
|
||||
|
|
|
@ -8,25 +8,30 @@ cache:
|
|||
key: "${CI_COMMIT_REF_SLUG}"
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
libresilient-test:
|
||||
stage: test
|
||||
script:
|
||||
- npm ci --include=dev
|
||||
- npx jest --coverage --ci --reporters=default --reporters=jest-junit
|
||||
- npx jest --collectCoverage --coverageDirectory="./coverage" --coverage --ci --reporters=default --reporters=jest-junit
|
||||
coverage: "/All files[^|]*\\|[^|]*\\s+([\\d\\.]+)/"
|
||||
artifacts:
|
||||
when: always
|
||||
reports:
|
||||
junit:
|
||||
- junit.xml
|
||||
cobertura: coverage/cobertura-coverage.xml
|
||||
tags:
|
||||
- libresilient
|
||||
- libresilient
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
sast:
|
||||
stage: test
|
||||
tags:
|
||||
- docker
|
||||
- linux
|
||||
|
||||
include:
|
||||
- template: Security/SAST.gitlab-ci.yml
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{
|
||||
"jest": {
|
||||
"collectCoverageFrom": ["**/*.js", "!**/node_modules/**", "!**/lib/**"],
|
||||
"coverageReporters": ["text", "text-summary", "cobertura"],
|
||||
"testMatch": ["**/*.test.js"]
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^7.32.0",
|
||||
"jest": "^27.0.6",
|
||||
|
|
Ładowanie…
Reference in New Issue