diff --git a/requirements/test.txt b/requirements/test.txt index 01000c51..5bdd1d32 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -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 diff --git a/setup.cfg b/setup.cfg index 6e7a8ff0..bf7300eb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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.