From a0f2ce90637e31d11be5e3346ac3cdac0f8dd212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiss=20Gy=C3=B6rgy?= Date: Mon, 6 Dec 2021 19:29:03 +0100 Subject: [PATCH] Increased coverage to 90% Wrote new unit tests during refactoring, coverage can be increased. Put the configuration in pyproject.toml, so everyone can run it with the same configuration. --- .github/workflows/tests.yml | 3 +-- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9b5b7bed9a..ab3751beb8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,5 +37,4 @@ jobs: run: git lfs pull - name: Run pytest - # TODO: Dummy coverage (branch: 0%) is needed for the pass rate. Increase this - run: poetry run pytest --cov=. --cov-branch --cov-fail-under=0 + run: poetry run pytest diff --git a/pyproject.toml b/pyproject.toml index 7050975fb0..13d6bc2197 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,9 @@ profile = "black" [tool.poetry.scripts] unblob = "unblob.cli:main" +[tool.pytest.ini_options] +addopts = "--cov=. --cov-branch --cov-fail-under=90" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"