Added coverage commands to make test and dir to gitignore

This commit is contained in:
Andrew Shumway
2023-04-17 15:56:08 -06:00
parent 81f36182e8
commit d8c5c29d2d
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View File

@@ -44,6 +44,7 @@ pip-delete-this-directory.txt
htmlcov/ htmlcov/
.tox/ .tox/
.coverage .coverage
.coverage_cache
.coverage.* .coverage.*
.cache .cache
.pytest_cache .pytest_cache
@@ -76,6 +77,7 @@ environment.sh
varsfile varsfile
celerybeat-schedule celerybeat-schedule
celerybeat-schedule.db
# CloudFoundry # CloudFoundry
.cf .cf

View File

@@ -53,10 +53,12 @@ generate-version-file: ## Generates the app version file
.PHONY: test .PHONY: test
test: export NEW_RELIC_ENVIRONMENT=test test: export NEW_RELIC_ENVIRONMENT=test
test: ## Run tests test: ## Run tests and create coverage report
pipenv run flake8 . pipenv run flake8 .
pipenv run isort --check-only ./app ./tests pipenv run isort --check-only ./app ./tests
pipenv run pytest -n4 --maxfail=10 pipenv run coverage run -m pytest -n4 --maxfail=10
pipenv run coverage report
pipenv run coverage html -d .coverage_cache
.PHONY: freeze-requirements .PHONY: freeze-requirements
freeze-requirements: ## Pin all requirements including sub dependencies into requirements.txt freeze-requirements: ## Pin all requirements including sub dependencies into requirements.txt