diff --git a/.coveragerc b/.coveragerc index 1ec85f9..8283626 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,8 @@ [run] branch = True -source = i18n -omit = i18n/tests/*,i18n/openstack/* +source = oslo_i18n +omit = oslo_i18n/tests/* [report] ignore_errors = True +precision = 2 diff --git a/tox.ini b/tox.ini index 5b049c6..08c2017 100644 --- a/tox.ini +++ b/tox.ini @@ -26,7 +26,7 @@ commands = {posargs} commands = python setup.py build_sphinx [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = python setup.py test --coverage --coverage-package-name=oslo_i18n --testr-args='{posargs}' [flake8] # E123, E125 skipped as they are invalid PEP-8.