Merge pull request #46 from silas-x/main

add code coverage to tests
This commit is contained in:
Geoff Taylor 2022-02-25 13:51:21 +00:00 committed by GitHub
commit f120328af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -4,15 +4,13 @@ commands := $(wildcard bin/*)
setup: ## Install all the build and lint dependencies
pip --no-cache-dir install poetry
poetry install --no-interaction
poetry add pytest-cov
upgrade: ## Upgrade all the build and lint dependencies
poetry upgrade --no-interaction
test: ## Run all the tests
SOLENV_NAME= SOLENV_ADDRESS= CLUSTER_NAME= CLUSTER_URL= KEYPAIR= PYTEST_ADDOPTS="-p no:cacheprovider" poetry run pytest -rP tests
#cover: test ## Run all the tests and opens the coverage report
# TODO: Coverage
test: ## Run all the tests and calculate code coverage
SOLENV_NAME= SOLENV_ADDRESS= CLUSTER_NAME= CLUSTER_URL= KEYPAIR= PYTEST_ADDOPTS="-p no:cacheprovider" poetry run pytest -rP tests/ --cov=mango
black:
poetry run black --check mango tests bin/*