Skip to content

Commit

Permalink
Configure pytest coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Chang <[email protected]>
  • Loading branch information
mocsharp committed Dec 3, 2024
1 parent 8f5463e commit 9d9a4a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
coverage.json
*.cover
*.py,cover
.hypothesis/
Expand Down
13 changes: 11 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,17 @@ max-line-length = 160

[tool.pytest.ini_options]
pythonpath = "src"
addopts = [
"--import-mode=importlib",
addopts = """
--import-mode=importlib \
--doctest-modules \
--cov=./ \
--cov-append \
--cov-report json:tests/reports/coverage.json \
--ignore=docs/
"""

testpaths = [
"tests/unit",
]

[build-system]
Expand Down

0 comments on commit 9d9a4a3

Please sign in to comment.