diff --git a/.coveragerc b/.coveragerc index 3532cb58..0affbccd 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,9 +1,13 @@ [run] branch = True source = sushy +omit = + *tests* [report] ignore_errors = True +omit = + *tests* [html] directory = cover diff --git a/tox.ini b/tox.ini index f2a14fe8..3e8e90b6 100644 --- a/tox.ini +++ b/tox.ini @@ -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]