Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
build(make): add target for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
peakji committed Mar 5, 2023
1 parent 831d4e1 commit 170317a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ changelog:
.PHONY: clean
clean:
@find . -type f -name "*.py[co]" -delete && find . -type d -name "__pycache__" -delete
@rm -rf dist/ .pytest_cache/
@rm -rf dist/ .pytest_cache/ htmlcov/ .coverage

.PHONY: docker-hub
docker-hub:
Expand All @@ -38,3 +38,8 @@ lint:
.PHONY: test
test:
@python -m pytest

.PHONY: test-coverage
test-coverage:
@coverage run -m pytest
@coverage report

0 comments on commit 170317a

Please sign in to comment.