Merge "Use testr coverage feature"

This commit is contained in:
Jenkins 2016-12-14 22:20:11 +00:00 committed by Gerrit Code Review
commit 2f184ea076
2 changed files with 2 additions and 9 deletions

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

@ -46,7 +46,8 @@ commands =
commands = {posargs}
[testenv:cover]
commands = ./coverage.sh {posargs}
commands = python setup.py testr --coverage --testr-args='{posargs}'
coverage report --show-missing
[flake8]
# E123, E125 skipped as they are invalid PEP-8.