Skip to content

Commit

Permalink
Merge pull request #48 from globus/add-coverage-reporting
Browse files Browse the repository at this point in the history
Add coverage reporting for client testing
  • Loading branch information
sirosen authored Aug 28, 2024
2 parents a467c29 + 9b4ed88 commit 68a5448
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
envlist =
mypy-client
mypy-daemon
coverage_clean
py{36,37,38,39,310,311,312}
coverage_report
skip_missing_interpreters = true
minversion = 4.0.0

Expand All @@ -13,7 +15,22 @@ skip_install = true
deps =
{tox_root}/client
pytest
commands = pytest {posargs}
coverage
commands = coverage run -m pytest {posargs}
depends =
py{312,311,310,39,38,37,36}: coverage_clean
coverage_report: py{312,311,310,39,38,37,36}

[testenv:coverage_clean]
deps = coverage
skip_install = true
commands = coverage erase

[testenv:coverage_report]
deps = coverage
skip_install = true
commands_pre = -coverage combine
commands = coverage report --skip-covered

[testenv:mypy-{client,daemon}]
skip_install = true
Expand Down

0 comments on commit 68a5448

Please sign in to comment.