Skip to content

Commit

Permalink
Write all coverage to {toxinidir}
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Jul 7, 2024
1 parent 6f17f0e commit 0033155
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ source_pkgs = incremental
source = tests
branch = True
parallel = True
# This must be an absolute path because the example tests
# run Python processes with alternative working directories.
data_file = ${TOX_INI_DIR?}/.coverage

[paths]
source =
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ extras =
setenv =
; Suppress pointless chatter in the output.
PIP_DISABLE_PIP_VERSION_CHECK=yes
tests: PIP_FIND_LINKS={distdir}

tests: TOX_INI_DIR={toxinidir}
tests: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
tests: PIP_FIND_LINKS={distdir}

commands =
python -V
Expand All @@ -43,7 +45,7 @@ commands =
tests: coverage erase
tests: coverage run {envbindir}/trial incremental
tests: coverage run {envbindir}/trial tests/test_examples.py
tests: coverage combine . tests/example_setuppy tests/example_setuptools
tests: coverage combine
tests: coverage report
tests: coverage html
tests: coverage xml
Expand Down

0 comments on commit 0033155

Please sign in to comment.