Skip to content

Commit

Permalink
increase cachi2 coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Šoltis <[email protected]>
  • Loading branch information
slimreaper35 committed Mar 6, 2024
1 parent 18099a6 commit e8fd9a8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .coveragerc

This file was deleted.

12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,15 @@ disallow_untyped_decorators = true
[[tool.mypy.overrides]]
module = ["semver"]
ignore_missing_imports = true

[tool.coverage.report]
skip_covered = true
show_missing = true
fail_under = 85
exclude_also = [
"def __repr__",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"raise AssertionError",
"raise NotImplementedError",
]
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ deps =
-rrequirements-extras.txt
commands =
py.test \
--ignore tests/integration \
--cov-config .coveragerc --cov=cachi2 --cov-report term \
--cov-report xml --cov-report html {posargs}
--ignore=tests/integration \
--cov=cachi2 \
--cov-config=pyproject.toml \
--cov-report=term \
--cov-report=html \
--cov-report=xml {posargs}
allowlist_externals =
make
mkdir
Expand Down

0 comments on commit e8fd9a8

Please sign in to comment.