diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..3240e0fa --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +branch = True +source = oslo_config +omit = oslo_config/tests/* + +[report] +ignore_errors = True +precision = 2 diff --git a/.gitignore b/.gitignore index bc7f2824..03377e81 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ ChangeLog *.log .tox .coverage +cover oslo.config.egg-info/ build/ doc/build/ diff --git a/tox.ini b/tox.ini index a483a64b..8670ed22 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ commands = flake8 [testenv:cover] setenv = VIRTUAL_ENV={envdir} commands = - python setup.py testr --coverage + python setup.py test --coverage --coverage-package-name=oslo_config --testr-args='{posargs}' [testenv:venv] commands = {posargs}