mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 08:16:19 -04:00
Added coverage commands to make test and dir to gitignore
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user