mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 18:52:30 -05: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/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage_cache
|
||||
.coverage.*
|
||||
.cache
|
||||
.pytest_cache
|
||||
@@ -76,6 +77,7 @@ environment.sh
|
||||
varsfile
|
||||
|
||||
celerybeat-schedule
|
||||
celerybeat-schedule.db
|
||||
|
||||
# CloudFoundry
|
||||
.cf
|
||||
|
||||
6
Makefile
6
Makefile
@@ -53,10 +53,12 @@ generate-version-file: ## Generates the app version file
|
||||
|
||||
.PHONY: test
|
||||
test: export NEW_RELIC_ENVIRONMENT=test
|
||||
test: ## Run tests
|
||||
test: ## Run tests and create coverage report
|
||||
pipenv run flake8 .
|
||||
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
|
||||
freeze-requirements: ## Pin all requirements including sub dependencies into requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user