coverage percent in pipeline

This commit is contained in:
HgO 2022-08-08 22:54:12 +02:00
parent 9b21fcb6e3
commit a10ce3e472

View file

@ -56,7 +56,8 @@ tests:
stage: test
script:
- apk add --no-cache libstdc++
- coverage run --source matrix_alertbot -m pytest --junitxml=report.xml
- coverage run --source matrix_alertbot --parallel-mode -m pytest --junitxml=report.xml
- coverage report --precision 2
- coverage xml -o coverage.xml
cache:
policy: pull
@ -66,4 +67,5 @@ tests:
coverage_format: cobertura
path: coverage.xml
junit: report.xml
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+\%)$/'
interruptible: true