diff --git a/coverage.sh b/coverage.sh deleted file mode 100755 index 8801f3fd..00000000 --- a/coverage.sh +++ /dev/null @@ -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" diff --git a/tox.ini b/tox.ini index 3ded1314..7375672a 100644 --- a/tox.ini +++ b/tox.ini @@ -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.