mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-05 20:18:24 -04:00
notify-api-391 increase code coverage to 95%
This commit is contained in:
4
Makefile
4
Makefile
@@ -60,8 +60,8 @@ test: export NEW_RELIC_ENVIRONMENT=test
|
|||||||
test: ## Run tests and create coverage report
|
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 coverage run --omit=*/notifications_utils/* -m pytest --maxfail=10
|
pipenv run coverage run -m pytest --maxfail=10
|
||||||
pipenv run coverage report --fail-under=88
|
pipenv run coverage report --fail-under=92
|
||||||
pipenv run coverage html -d .coverage_cache
|
pipenv run coverage html -d .coverage_cache
|
||||||
|
|
||||||
.PHONY: freeze-requirements
|
.PHONY: freeze-requirements
|
||||||
|
|||||||
10
setup.cfg
10
setup.cfg
@@ -17,3 +17,13 @@ known_third_party=notifications_utils,notifications_python_client
|
|||||||
known_first_party=app,tests
|
known_first_party=app,tests
|
||||||
include_trailing_comma=True
|
include_trailing_comma=True
|
||||||
use_parentheses=True
|
use_parentheses=True
|
||||||
|
|
||||||
|
[coverage:run]
|
||||||
|
omit =
|
||||||
|
# omit anything in a .local directory anywhere
|
||||||
|
*/.local/*
|
||||||
|
# omit everything in /usr
|
||||||
|
/usr/*
|
||||||
|
*/tests/*
|
||||||
|
*/virtualenvs/*
|
||||||
|
*/migrations/*
|
||||||
|
|||||||
Reference in New Issue
Block a user