Merge pull request #2894 from lordmauve/tox-coverage

Add tox target to generate coverage reports
gthank-master
Eric Holscher 2017-05-23 11:55:32 -07:00 committed by GitHub
commit 99815f7800
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -38,3 +38,4 @@ xml_output
public_*
private_*
.rope_project/
readthedocs/htmlcov

11
tox.ini
View File

@ -29,3 +29,14 @@ commands =
--profile-path={toxinidir} \
--profile=prospector \
--die-on-tool-error
[testenv:coverage]
deps =
-r{toxinidir}/requirements/pip.txt
pytest-cov
whitelist_externals = echo
commands =
py.test --disable-pytest-warnings \
--cov-report=term --cov-report=html --cov=. {posargs}
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html