Skip to content

Commit 446a567

Browse files
committed
Replace manually messing with coverage options by using --cov-append. Also add a cleaning phase.
1 parent 5ce1772 commit 446a567

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

examples/src-layout/tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
[tox]
2-
envlist = pypy3,py39,report
2+
envlist = clean,pypy310,py310,report
33

44
[tool:pytest]
55
testpaths = tests
66
addopts =
77
--cov-report=term-missing
88

99
[testenv]
10-
setenv =
11-
py{py3,39}: COVERAGE_FILE = .coverage.{envname}
12-
commands = pytest --cov {posargs:-vv}
10+
commands = pytest --cov --cov-append {posargs:-vv}
1311
deps =
1412
pytest
1513
coverage
@@ -20,12 +18,17 @@ deps =
2018
../..
2119

2220
depends =
23-
report: pypy3,py39
21+
report: pypy310,py310
22+
{pypy310,py310}: clean
23+
24+
[testenv:clean]
25+
skip_install = true
26+
deps = coverage
27+
commands =
28+
coverage erase
2429

2530
[testenv:report]
2631
skip_install = true
2732
deps = coverage
2833
commands =
29-
coverage combine
30-
coverage html
3134
coverage report --fail-under=100

0 commit comments

Comments
 (0)