Merge "Fix coverage test"

This commit is contained in:
Jenkins 2017-10-13 01:53:45 +00:00 committed by Gerrit Code Review
commit 30a8e62d1a
2 changed files with 8 additions and 7 deletions

View File

@ -1,4 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./kuryr_libnetwork/tests/unit} $LISTOPT $IDOPTION | cat
test_id_option=--load-list $IDFILE
test_list_option=--list

11
tox.ini
View File

@ -42,10 +42,15 @@ commands = flake8
commands = {posargs}
[testenv:cover]
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source kuryr_libnetwork --parallel-mode
commands =
python setup.py test --coverage --testr-args='{posargs}' \
--coverage-package-name=kuryr_libnetwork
coverage report
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
commands = python setup.py build_sphinx