Merge "Fix coverage report"
This commit is contained in:
commit
48bbbe6268
@ -4,7 +4,7 @@ test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|||||||
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
||||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
||||||
OS_DEBUG=${OS_DEBUG:-0} \
|
OS_DEBUG=${OS_DEBUG:-0} \
|
||||||
python -m subunit.run discover . $LISTOPT $IDOPTION
|
${PYTHON:-python} -m subunit.run discover . $LISTOPT $IDOPTION
|
||||||
test_id_option=--load-list $IDFILE
|
test_id_option=--load-list $IDFILE
|
||||||
test_list_option=--list
|
test_list_option=--list
|
||||||
|
|
||||||
|
@ -12,3 +12,5 @@ oslosphinx>=4.7.0 # Apache-2.0
|
|||||||
|
|
||||||
# releasenotes
|
# releasenotes
|
||||||
reno>=1.8.0 # Apache-2.0
|
reno>=1.8.0 # Apache-2.0
|
||||||
|
|
||||||
|
coverage>=4.0 # Apache-2.0
|
||||||
|
9
tox.ini
9
tox.ini
@ -9,7 +9,7 @@ install_command = pip install -U {opts} {packages}
|
|||||||
deps= -r{toxinidir}/requirements.txt
|
deps= -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands=
|
commands=
|
||||||
python setup.py testr --slowest --testr-args='{posargs}'
|
python setup.py test --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
@ -24,9 +24,10 @@ envdir = {toxworkdir}/venv
|
|||||||
commands = {toxinidir}/tests/run_functests.sh {posargs}
|
commands = {toxinidir}/tests/run_functests.sh {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = PYTHON=coverage run --source diskimage_builder
|
# NOTE: this is "setup.py test" (*not* testr) which is a pbr wrapper
|
||||||
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
|
# around testr. This understands --coverage-package-name which we
|
||||||
bash -c 'testr run --parallel ; RET=$? ; coverage combine ; coverage html -d ./cover $OMIT && exit $RET'
|
# need due to underscore issues.
|
||||||
|
commands = python setup.py test --coverage --coverage-package-name diskimage_builder --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
Loading…
Reference in New Issue
Block a user