Skip to content

Commit

Permalink
refactor: Omit logger from coverage reports (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth authored Sep 18, 2023
1 parent 409ac9c commit 2079f67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ pytest-cache >=1.0
pytest-cov >=2.4.0
pytest-mock >=2.0.0

# Coverage for covreports
coverage >= 7.2.0

# Faking of file systems
pyfakefs >=3.7.1

Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ testpaths = tests
omit =
cubi_tk/_version.py

# exclude logger lines from test coverage
[coverage:report]
exclude_also =
logger.

# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.
Expand Down

0 comments on commit 2079f67

Please sign in to comment.