mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 07:12:20 -05:00
Added fail coverage threshold under 50%
This commit is contained in:
4
Makefile
4
Makefile
@@ -56,8 +56,8 @@ test: export NEW_RELIC_ENVIRONMENT=test
|
||||
test: ## Run tests and create coverage report
|
||||
pipenv run flake8 .
|
||||
pipenv run isort --check-only ./app ./tests
|
||||
pipenv run coverage run -m pytest -n4 --maxfail=10
|
||||
pipenv run coverage report
|
||||
pipenv run coverage run --omit=*/notifications_utils/* -m pytest -n4 --maxfail=10
|
||||
pipenv run coverage report --fail-under=50
|
||||
pipenv run coverage html -d .coverage_cache
|
||||
|
||||
.PHONY: freeze-requirements
|
||||
|
||||
Reference in New Issue
Block a user