Skip to content

Commit 3aafd97

Browse files
committed
Add tox target to generate coverage reports
1 parent 4693f9e commit 3aafd97

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

requirements/cov.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest-cov==2.5.1

tox.ini

+11
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,14 @@ commands =
2929
--profile-path={toxinidir} \
3030
--profile=prospector \
3131
--die-on-tool-error
32+
33+
34+
[testenv:coverage]
35+
deps =
36+
-r{toxinidir}/requirements/pip.txt
37+
-r{toxinidir}/requirements/cov.txt
38+
whitelist_externals = echo
39+
commands =
40+
py.test --disable-pytest-warnings \
41+
--cov-report=term --cov-report=html --cov=. {posargs}
42+
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html

0 commit comments

Comments
 (0)