Skip to content

Commit b8c63c3

Browse files
committed
Splite coverage combine & report in local tox
Avoids 80+ lines saying something like: Combined data file .coverage.nazare.fritz.box.54735.XtvwSeqx
1 parent d47e199 commit b8c63c3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

tox.ini

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ commands =
3232
dependency_groups = tests
3333
commands = pytest tests/test_functional.py
3434

35-
# Keep versions in-sync with coverage-report.
35+
# Keep versions in-sync with coverage-combine.
3636
[testenv:py3{9,10,14}-tests]
3737
dependency_groups = cov
3838
# Python 3.6+ has a number of compile-time warnings on invalid string escapes.
@@ -43,17 +43,24 @@ set_env =
4343
commands =
4444
coverage run -m pytest {posargs:-n auto}
4545

46-
[testenv:coverage-report]
46+
# Split combine/report in 2 to avoid excessive "Combined data file ..." output.
47+
[testenv:coverage-combine]
4748
# Keep base_python in-sync with .python-version-default
4849
base_python = py313
4950
# Keep depends in-sync with testenv above that has the cov dependency group.
5051
depends = py3{9,10,14}-tests
52+
skip_install = true
53+
dependency_groups = cov
54+
commands = coverage combine
55+
56+
[testenv:coverage-report]
57+
# Keep base_python in-sync with .python-version-default
58+
base_python = py313
59+
depends = coverage-combine
5160
parallel_show_output = true
5261
skip_install = true
5362
dependency_groups = cov
54-
commands =
55-
coverage combine
56-
coverage report
63+
commands = coverage report
5764

5865

5966
[testenv:codspeed]

0 commit comments

Comments
 (0)