(ci) add coverage report

This commit is contained in:
Valentyne Stigloher 2023-12-12 01:04:51 +01:00
parent 07bb6fa20b
commit 3a86a20fc0

View File

@ -14,8 +14,12 @@ unit-tests:
stage: test
script:
- yarn add -D jest-junit
- yarn test --ci --reporters=default --reporters=jest-junit
- yarn test --ci --reporters=default --reporters=jest-junit --coverage --collect-coverage-from="./{plugins,server,src,store}/**" --coverage-reporters=text --coverage-reporters=cobertura
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts:
when: always
reports:
junit: junit.xml
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml