summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurits van Rees <maurits@vanrees.org>2021-09-02 12:36:53 +0200
committerMaurits van Rees <maurits@vanrees.org>2021-09-02 13:04:07 +0200
commit4ba069ab0abc3c73750a37eaff885f96a6cd55a7 (patch)
treeabce104d0aea951f53cfc94190d7888f97cc1e66
parent37e0e845626d4e2299ee2a72795166f54451e61a (diff)
downloadzope-i18n-4ba069ab0abc3c73750a37eaff885f96a6cd55a7.tar.gz
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.
-rw-r--r--.meta.toml2
-rw-r--r--tox.ini2
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