26 lines
1 KiB
Makefile
26 lines
1 KiB
Makefile
# thermograph-frontend — local dev/test targets.
|
|
.PHONY: help test test-unit test-integration backend-up backend-down capture-fixtures clean-venv
|
|
|
|
help: ## List targets
|
|
@grep -hE '^[a-z][a-zA-Z0-9_-]*:.*## ' $(MAKEFILE_LIST) | awk -F':.*## ' '{printf " %-18s %s\n", $$1, $$2}'
|
|
|
|
test: ## Run the whole suite (unit hermetic + integration against a real backend)
|
|
./scripts/test.sh $(ARGS)
|
|
|
|
test-unit: ## Hermetic unit tier — SSR rendering fed committed fixtures, no Docker
|
|
./scripts/test.sh tests/unit $(ARGS)
|
|
|
|
test-integration: ## Integration tier — pulls + runs the real backend image, tests the live contract
|
|
./scripts/test.sh tests/integration $(ARGS)
|
|
|
|
backend-up: ## Pull + run the backend container for local dev (prints its base URL)
|
|
./scripts/backend-for-tests.sh up
|
|
|
|
backend-down: ## Stop the local backend container
|
|
./scripts/backend-for-tests.sh down
|
|
|
|
capture-fixtures: ## Refresh tests/fixtures/*.json from a live backend
|
|
./scripts/capture-fixtures.sh
|
|
|
|
clean-venv: ## Remove the test venv
|
|
rm -rf .venv-test
|