diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000000..ce98f5543d --- /dev/null +++ b/.coveragerc @@ -0,0 +1,7 @@ +[run] +branch = True +source = ironic +omit = ironic/tests/* + +[report] +ignore_errors = True diff --git a/tox.ini b/tox.ini index 64974e4378..d670b57d76 100644 --- a/tox.ini +++ b/tox.ini @@ -62,13 +62,13 @@ commands = [testenv:cover] setenv = {[testenv]setenv} - PYTHON=coverage run --source ironic --omit='*tests*' --parallel-mode + PYTHON=coverage run --source ironic --parallel-mode commands = coverage erase stestr run --parallel-class {posargs} coverage combine - coverage report --omit='*tests*' - coverage html -d ./cover --omit='*tests*' + coverage report + coverage html -d ./cover [testenv:genconfig] sitepackages = False