Use standard cover tox env

Change-Id: I4aff1415ef0bbe83ea043388e13e2384b372c7d7
This commit is contained in:
zhurong 2018-09-10 11:01:09 +08:00
parent f0d484ad66
commit c38d9bd2d2
3 changed files with 8 additions and 16 deletions

View File

@ -1,7 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -1,8 +0,0 @@
#!/bin/sh
args=
if [ -n "$@" ] ; then
args="-t $@"
fi
python setup.py testr --coverage --slowest "$args"
python -m coverage report --show-missing
echo "Coverage generated, see cover/index.html"

View File

@ -29,7 +29,14 @@ commands = {posargs}
[testenv:cover]
basepython = python3
commands = ./coverage.sh {posargs}
setenv =
{[testenv]setenv}
PYTHON=coverage run --source solum --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:debug]
basepython = python3