diff --git a/.coveragerc b/.coveragerc index e89203d..2a6cd7b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,8 @@ [run] branch = True -source = test -omit = test/tests/*,test/openstack/* +source = oslotest +omit = oslotest/tests/* [report] -ignore-errors = True \ No newline at end of file +ignore_errors = True +precision = 2 diff --git a/.gitignore b/.gitignore index cc4c84e..f6cbf5c 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ pip-log.txt # Unit test / coverage reports .coverage +cover .tox nosetests.xml .testrepository diff --git a/tox.ini b/tox.ini index 6ee5223..63c8bed 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ commands = flake8 [testenv:cover] setenv = VIRTUAL_ENV={envdir} commands = - python setup.py testr --coverage + python setup.py test --coverage --testr-args='{posargs}' [testenv:venv] commands = {posargs}