Also generate unit test report
This commit is contained in:
parent
b5f16f161c
commit
a20145b447
@ -4,12 +4,13 @@ run tests:
|
|||||||
script:
|
script:
|
||||||
- pip install pytest pytest-cov pytest-mock pytest-flask
|
- pip install pytest pytest-cov pytest-mock pytest-flask
|
||||||
- pip install Flask-HTTPAuth
|
- pip install Flask-HTTPAuth
|
||||||
- coverage run -m pytest
|
- coverage run -m pytest --junitxml=report.xml
|
||||||
- coverage report
|
- coverage report
|
||||||
- coverage xml
|
- coverage xml
|
||||||
coverage: '/^TOTAL.+?(\d+\%)$/'
|
coverage: '/^TOTAL.+?(\d+\%)$/'
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
cobertura: coverage.xml
|
cobertura: coverage.xml
|
||||||
|
junit: report.xml
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user