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
|
||||||
coverage.xml
|
coverage.xml
|
||||||
coverage.lcov
|
coverage.lcov
|
||||||
|
lcov.info
|
||||||
|
|
|
@ -60,7 +60,7 @@ tests:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache libstdc++
|
- apk add --no-cache libstdc++
|
||||||
- pytest
|
- pytest --junitxml report.xml
|
||||||
cache:
|
cache:
|
||||||
policy: pull
|
policy: pull
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -68,7 +68,8 @@ tests:
|
||||||
coverage_report:
|
coverage_report:
|
||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+(\.\d+)?\%)$/'
|
junit: report.xml
|
||||||
|
coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d\.]+\%)$/'
|
||||||
needs:
|
needs:
|
||||||
- job: linting
|
- job: linting
|
||||||
artifacts: false
|
artifacts: false
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[pytest]
|
[pytest]
|
||||||
asyncio_mode=strict
|
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