diff --git a/.coveragerc b/.coveragerc index 5c9d5016..891f4a66 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,9 @@ [run] branch = True source = vmware_nsxlib +omit = vmware_nsxlib/tests/* [report] ignore_errors = True +[report] +ignore_errors = True diff --git a/tox.ini b/tox.ini index 9c669115..47057787 100644 --- a/tox.ini +++ b/tox.ini @@ -69,9 +69,8 @@ deps = -r{toxinidir}/test-requirements.txt commands = bandit -r vmware_nsxlib -n 5 -ll [testenv:cover] -basepython = python2.7 commands = - python setup.py testr --coverage --testr-args='{posargs}' + python setup.py test --coverage --coverage-package-name=vmware_nsxlib --testr-args='{posargs}' coverage report [testenv:venv]