Run tests directly from the Makefile

Contributes to: https://github.com/alphagov/notifications-manuals/issues/9

Precedent: https://github.com/alphagov/notifications-admin/pull/3897
This commit is contained in:
Ben Thorner
2021-06-16 13:01:56 +01:00
parent 47b1e280bb
commit 149976bfab
2 changed files with 3 additions and 39 deletions

View File

@@ -55,7 +55,9 @@ generate-version-file: ## Generates the app version file
.PHONY: test
test: test-requirements ## Run tests
./scripts/run_tests.sh
flake8 .
isort --check-only ./app ./tests
pytest -n4 --maxfail=10
.PHONY: freeze-requirements
freeze-requirements: ## Pin all requirements including sub dependencies into requirements.txt