Skip to content

Commit 99815f7

Browse files
authored
Merge pull request readthedocs#2894 from lordmauve/tox-coverage
Add tox target to generate coverage reports
2 parents 4693f9e + db66b8e commit 99815f7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ xml_output
3838
public_*
3939
private_*
4040
.rope_project/
41+
readthedocs/htmlcov

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+
pytest-cov
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)