Fix coverage
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This commit is contained in:
parent
e977e05164
commit
bd563b8c54
|
@ -5,3 +5,4 @@ omit = nova_lxd/tests/*
|
|||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
precision = 2
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue