Skip to content

Commit b330044

Browse files
committed
Append coverage in CI
1 parent 17d6cdd commit b330044

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ setenv =
6161

6262
# Configuration to run with coverage similar to CI, e.g.
6363
# "tox -e py39-coverage".
64-
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m
64+
# In some cases, we run tox passing multiple environments. Pass --append to ensure runs don't overwrite each
65+
# other's coverage data.
66+
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run --append -m
6567
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
6668
coverage: COVERAGE_FILE={toxinidir}/.coverage
6769
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc

0 commit comments

Comments
 (0)