aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Harrison <paul@harrison.sh>2022-11-18 13:27:10 +0000
committerPaul Harrison <paul@harrison.sh>2022-12-15 16:02:14 +0000
commit2ba3a42b9b0a11adea48bfec4d98c116f1917c36 (patch)
tree00d32881c51169d8e2aa1ce913d3b5d5cd21b48a /Makefile
parentf0af94aa41e82626b4b97460b4edc841c825654d (diff)
chore: Add coverage
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 580d167..5d0b70c 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,10 @@ clean: ## Remove python cache files
-@find . -name '*.pytest_cache' -exec rm -fr {} +;
-@find . -name '*.coverage' -exec rm -fr {} +;
+.PHONY: coverage
+coverage: ## Report test coverage
+ @poetry run coverage report --rcfile=setup.cfg;
+
.PHONY: flake8
flake8: ## Run flake8 linting
@poetry run flake8 poker tests --config=setup.cfg;
@@ -63,7 +67,7 @@ quality: flake8 mypy isort-check black-check pydocstyle ## Run linting checks
.PHONY: test
test: ## Run test pipeline
- @poetry run pytest -c=setup.cfg -x
+ @poetry run coverage run --rcfile=setup.cfg --source=poker -m pytest -c=setup.cfg -x
.PHONY: uninstall
uninstall: ## Remove virtual environment