Skip to content

Commit

Permalink
Increased coverage to 90%
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kissgyorgy committed Dec 7, 2021
1 parent 44d88eb commit 5daf6aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 5daf6aa

Please sign in to comment.