From 7bc0a563973404b18edaa4c96426a132c97efc35 Mon Sep 17 00:00:00 2001 From: Thomas Sell Date: Mon, 18 Sep 2023 16:04:57 +0200 Subject: [PATCH] refactor: Omit logger from coverage reports --- requirements/test.txt | 3 +++ setup.cfg | 5 +++++ 2 files changed, 8 insertions(+) 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.