Fix coverage

Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
Chuck Short 2016-01-19 20:30:51 -05:00
parent e977e05164
commit bd563b8c54
2 changed files with 7 additions and 1 deletions

View File

@ -5,3 +5,4 @@ omit = nova_lxd/tests/*
[report]
ignore_errors = True
precision = 2

View File

@ -25,7 +25,12 @@ commands = {posargs}
[testenv:cover]
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
commands = nosetests --with-xcoverage --cover-package=nova_lxd --cover-tests
commands =
coverage erase
python setup.py testr --coverage --coverage-package-name=nova_lxd \
--testr-args='{posargs}'
coverage combine
coverage html --include='nova_lxd/*' -d covhtml -i
[testenv:docs]
commands = python setup.py build_sphinx