diff options
author | Paul Harrison <paul@harrison.sh> | 2022-11-18 13:27:10 +0000 |
---|---|---|
committer | Paul Harrison <paul@harrison.sh> | 2022-12-15 16:02:14 +0000 |
commit | 2ba3a42b9b0a11adea48bfec4d98c116f1917c36 (patch) | |
tree | 00d32881c51169d8e2aa1ce913d3b5d5cd21b48a /Makefile | |
parent | f0af94aa41e82626b4b97460b4edc841c825654d (diff) |
chore: Add coverage
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |