Merge pull request #2894 from lordmauve/tox-coverage
Add tox target to generate coverage reportsgthank-master
commit
99815f7800
|
@ -38,3 +38,4 @@ xml_output
|
|||
public_*
|
||||
private_*
|
||||
.rope_project/
|
||||
readthedocs/htmlcov
|
||||
|
|
11
tox.ini
11
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue