mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Added code coverage test to pipfile/makefile/workflow (#472)
Co-authored-by: stvnrlly <steven.reilly@gsa.gov>
This commit is contained in:
4
Makefile
4
Makefile
@@ -54,7 +54,9 @@ py-lint: ## Run python linting scanners
|
||||
.PHONY: py-test
|
||||
py-test: export NEW_RELIC_ENVIRONMENT=test
|
||||
py-test: ## Run python unit tests
|
||||
pipenv run py.test -n auto --maxfail=10 tests/
|
||||
pipenv run coverage run --omit=*/notifications_utils/* -m pytest --maxfail=10 tests/
|
||||
pipenv run coverage report --fail-under=90
|
||||
pipenv run coverage html -d .coverage_cache
|
||||
|
||||
.PHONY: js-lint
|
||||
js-lint: ## Run javascript linting scanners
|
||||
|
||||
Reference in New Issue
Block a user