Also generate unit test report

This commit is contained in:
Ruben van Staveren 2022-03-10 21:01:02 +01:00
parent b5f16f161c
commit a20145b447
Signed by: ruben
GPG Key ID: 886F6BECD477A93F

View File

@ -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