From 0ed53e0d825290d41d6bb1e048ebc111272753b2 Mon Sep 17 00:00:00 2001 From: Maurits van Rees Date: Thu, 2 Sep 2021 12:36:53 +0200 Subject: Set minimum coverage at 99 percent. We had 100% test coverage previously, but this dropped to around 99.11 percent when using the new default in tox.ini: ``` [coverage:run] branch = True ``` With branch=False, the coverage would be back at 100 percent, but I don't see a way to configure this in meta.toml, and it may be better to see the actual coverage. We should add more tests to cover the untested branches. For now, we lower our expectations. --- .meta.toml | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.meta.toml b/.meta.toml index e8e5c84..877be7c 100644 --- a/.meta.toml +++ b/.meta.toml @@ -16,7 +16,7 @@ with-sphinx-doctests = true use-flake8 = true [coverage] -fail-under = 100 +fail-under = 99 [manifest] additional-rules = [ diff --git a/tox.ini b/tox.ini index 68e58b0..da82bb1 100644 --- a/tox.ini +++ b/tox.ini @@ -64,7 +64,7 @@ commands = coverage run -m zope.testrunner --test-path=src {posargs:-vc} coverage run -a -m sphinx -b doctest -d {envdir}/.cache/doctrees docs {envdir}/.cache/doctest coverage html - coverage report -m --fail-under=100 + coverage report -m --fail-under=99 [coverage:run] branch = True -- cgit v1.2.1