Skip to content

Commit b952af1

Browse files
committed
Fix coverage when running tox -p auto
This is a workaround for tox-dev/tox#1536.
1 parent 1e88bb9 commit b952af1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.coveragerc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[run]
2-
source = src
2+
source = zope.file
3+
4+
[paths]
5+
source =
6+
src/
7+
.tox/*/lib/python*/site-packages/
8+
.tox/pypy*/site-packages/
39

410
[report]
511
exclude_lines =

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ deps =
1414
zope.testing
1515

1616
[testenv:coverage]
17-
usedevelop = true
1817
basepython = python3
1918
deps =
2019
coverage
2120
commands =
22-
coverage run -m zope.testrunner --test-path=src []
23-
coverage report --fail-under=96
21+
coverage run -p -m zope.testrunner --test-path=src []
22+
coverage combine
23+
coverage report --fail-under=97

0 commit comments

Comments
 (0)