Merge "Display coverage report"

This commit is contained in:
Zuul 2024-02-07 04:58:34 +00:00 committed by Gerrit Code Review
commit c2b187f5cc
3 changed files with 12 additions and 4 deletions

8
.coveragerc Normal file
View File

@ -0,0 +1,8 @@
[run]
branch = True
source = heat_dashboard
omit = heat_dashboard/tests/*
[report]
ignore_errors = True

3
.gitignore vendored
View File

@ -38,13 +38,12 @@ pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
cover
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
ut_*_nose_results.html

View File

@ -41,8 +41,9 @@ commands = {posargs}
commands =
coverage erase
coverage run --source=heat_dashboard {toxinidir}/manage.py test {posargs:heat_dashboard.test.tests} --settings=heat_dashboard.test.settings
coverage xml
coverage html
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}