turn on code coverage for test runs

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-08-23 12:25:36 -04:00
parent 68c3636d87
commit 39e314bb5a
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
commands =
python setup.py test --coverage --coverage-package-name=whereto --slowest --testr-args='{posargs}'
coverage report --show-missing
[testenv:pep8]
commands = flake8 {posargs}