Merge "Omit tests from code coverage run"

This commit is contained in:
Zuul 2018-10-02 20:14:17 +00:00 committed by Gerrit Code Review
commit aaa7eb5883
2 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,13 @@
[run]
branch = True
source = sushy
omit =
*tests*
[report]
ignore_errors = True
omit =
*tests*
[html]
directory = cover

View File

@ -27,14 +27,15 @@ commands = {posargs}
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source sushy --parallel-mode
PYTHON=coverage run --parallel-mode
# After running this target, visit sushy/cover/index.html
# in your browser, to see a nicer presentation report with annotated
# HTML listings detailing missed lines.
commands = coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage report
coverage html
coverage xml -o cover/coverage.xml
[testenv:docs]