ci: add cobertura coverage report

This commit is contained in:
Rainer Killinger
2022-08-17 16:54:23 +02:00
parent 949063eff8
commit 54dc63d848
2 changed files with 7 additions and 0 deletions

View File

@@ -21,6 +21,12 @@ unit:
stage: test
script:
- npm test
coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
audit:
allow_failure: true

View File

@@ -94,6 +94,7 @@
"lines": 95,
"per-file": true,
"reporter": [
"cobertura",
"html",
"text-summary"
],