Skip to content

Commit

Permalink
Add test coverage to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
OmeGak committed Oct 21, 2023
1 parent 77c7144 commit 600c42b
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ dist/
.pytest_cache/
.ruff_cache/
__pycache__/

# test coverage
htmlcov/
.coverage
87 changes: 86 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pytest = "^7.4.0"
ruff = "^0.0.280"
tox = "^4.11.3"
types-pyyaml = "^6.0.12.11"
pytest-cov = "^4.1.0"

[build-system]
requires = ["poetry-core"]
Expand Down
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[pytest]
addopts =
; Coverage report
--cov src --cov-report html --no-cov-on-fail

0 comments on commit 600c42b

Please sign in to comment.