Fix tox coverage paths

pull/6/head
Frazer McLean 3 years ago
parent 6ebede2579
commit 66653e32a5
  1. 3
      pyproject.toml
  2. 4
      tox.ini

@ -6,6 +6,9 @@ build-backend = "setuptools.build_meta"
branch = true
source = ["parver", "tests/"]
[tool.coverage.paths]
source = ["src/parver", ".tox/*/lib/python*/site-packages/parver"]
[tool.coverage.report]
precision = 1
exclude_lines = ["pragma: no cover", "pass"]

@ -9,7 +9,9 @@ extras =
deps =
coverage[toml]
commands =
coverage run -m pytest {posargs}
# Use parallel mode to fix paths. See tool.coverage.paths in pyproject.toml
coverage run --parallel-mode -m pytest {posargs}
coverage combine
coverage report -m
[testenv:pep8]

Loading…
Cancel
Save