Added code coverage test to pipfile/makefile/workflow (#472)

Co-authored-by: stvnrlly <steven.reilly@gsa.gov>
This commit is contained in:
Andrew Shumway
2023-04-28 09:17:02 -06:00
committed by GitHub
parent ae9d179be2
commit 948ee68193
5 changed files with 85 additions and 22 deletions

View File

@@ -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