Merge "Fix coverage test errors in os-xenapi"
This commit is contained in:
commit
c917d650e7
6
tox.ini
6
tox.ini
@ -27,10 +27,14 @@ commands = flake8 {posargs}
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
# Use python2.7 explicitly so that it's compatible with python2.4 used for plugins.
|
||||||
|
basepython=/usr/bin/python2.7
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
python setup.py testr --coverage --testr-args='{posargs}'
|
coverage run -m unittest discover
|
||||||
|
coverage report
|
||||||
|
coverage html
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user