Skip to content

Commit

Permalink
Add coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Jul 7, 2023
1 parent af2bee3 commit d645f0b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[run]
source = quantflow

[html]
directory = build/coverage/html

[report]
exclude_lines =
pragma: no cover
raise NotImplementedError
if TYPE_CHECKING:
@abstract

[xml]
output = build/coverage.xml
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ publish-book: ## publish the book to github pages
poetry run ghp-import -n -p -f notebooks/_build/html

tests: ## unit tests
poetry run pytest
@./dev/test


outdated: ## Show outdated packages
Expand Down
7 changes: 7 additions & 0 deletions dev/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

poetry run \
pytest -x -vv \
--log-cli-level error \
--cov --cov-report xml --cov-report html "$@"

0 comments on commit d645f0b

Please sign in to comment.