Skip to content

Commit b6b0454

Browse files
committed
tests: fix coverage reporting
1 parent ccef578 commit b6b0454

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ include-package-data = true
7171
minversion = "6.0"
7272
python_files = "test_*.py"
7373
testpaths = [ "tests" ]
74+
addopts = "--cov=repoze.retry --cov=tests/unit --cov-branch"
7475

7576
[tool.coverage.run]
7677
omit = []

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ envlist =
77
isolated_build = true
88

99
[testenv]
10+
use_develop = true
1011
deps =
1112
pytest
1213
pytest-cov
1314
commands =
1415
python --version
15-
python -mpytest --cov \
16-
{posargs:}
16+
python -mpytest {posargs:}
1717
setenv =
1818
COVERAGE_FILE=.coverage.{envname}
1919

0 commit comments

Comments
 (0)