Skip to content

Commit 707d592

Browse files
committed
fix coverage reporter
1 parent 7e9ee49 commit 707d592

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ source = src
3535
.tox/*/lib/python*/site-packages
3636
.tox/pypy*/site-packages
3737
.tox\*\Lib\site-packages
38-
*/virtualenv.py
39-
*\virtualenv.py
38+
*/src
39+
*\src
4040

4141
[testenv:coverage]
4242
description = [run locally after tests]: combine coverage data and create report;
@@ -47,11 +47,11 @@ deps = {[testenv]deps}
4747
skip_install = True
4848
passenv = DIFF_AGAINST
4949
setenv = COVERAGE_FILE={toxworkdir}/.coverage
50-
commands = coverage erase
51-
coverage combine
52-
coverage report -m
53-
coverage xml -o {toxworkdir}/coverage.xml
54-
coverage html -d {toxworkdir}/htmlcov
50+
commands = coverage erase --rcfile="{toxinidir}/tox.ini"
51+
coverage combine --rcfile="{toxinidir}/tox.ini"
52+
coverage report -m --rcfile="{toxinidir}/tox.ini"
53+
coverage xml -o {toxworkdir}/coverage.xml --rcfile="{toxinidir}/tox.ini"
54+
coverage html -d {toxworkdir}/htmlcov --rcfile="{toxinidir}/tox.ini"
5555
diff-cover --compare-branch {env:DIFF_AGAINST:origin/master} {toxworkdir}/coverage.xml
5656

5757
[testenv:cross_python2]

0 commit comments

Comments
 (0)