fix code coverage report
This commit is contained in:
parent
d330e88d54
commit
0d7726acd9
3 changed files with 5 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -36,3 +36,4 @@ _version.py
|
|||
.coverage
|
||||
coverage.xml
|
||||
coverage.lcov
|
||||
lcov.info
|
||||
|
|
|
@ -60,7 +60,7 @@ tests:
|
|||
stage: test
|
||||
script:
|
||||
- apk add --no-cache libstdc++
|
||||
- pytest
|
||||
- pytest --junitxml report.xml
|
||||
cache:
|
||||
policy: pull
|
||||
artifacts:
|
||||
|
@ -68,7 +68,8 @@ tests:
|
|||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: coverage.xml
|
||||
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+(\.\d+)?\%)$/'
|
||||
junit: report.xml
|
||||
coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d\.]+\%)$/'
|
||||
needs:
|
||||
- job: linting
|
||||
artifacts: false
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[pytest]
|
||||
asyncio_mode=strict
|
||||
addopts=--cov=matrix_alertbot --cov-report=xml:coverage.xml --cov-report=term
|
||||
addopts=--cov=matrix_alertbot --cov-report=lcov:lcov.info --cov-report=coverage.xml --cov-report=term
|
||||
|
|
Loading…
Reference in a new issue