Use standard cover tox env
Change-Id: I4aff1415ef0bbe83ea043388e13e2384b372c7d7
This commit is contained in:
parent
f0d484ad66
commit
c38d9bd2d2
|
@ -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
|
|
@ -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"
|
9
tox.ini
9
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue