test(e2e): add isolated browser journey and cleanup supervision
Add a fake-only end-to-end stack, Firefox journey, and bounded process cleanup for normal, failed, and interrupted runs. Refs #12 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
13
Makefile
13
Makefile
@ -6,7 +6,7 @@ TRADARR_GO_CACHE_ROOT := $(or $(strip $(TMPDIR)),$(strip $(IDEA_MANAGED_TMP)),/t
|
||||
export GOCACHE ?= $(TRADARR_GO_CACHE_ROOT)/go-build
|
||||
export GOMODCACHE ?= $(TRADARR_GO_CACHE_ROOT)/gomodcache
|
||||
|
||||
.PHONY: up down build logs deps dev-backend dev-frontend test-postgres lint test verify docker-build
|
||||
.PHONY: up down build logs deps dev-backend dev-frontend test-postgres test-e2e test-e2e-supervisor test-e2e-timeout lint test verify docker-build
|
||||
|
||||
up:
|
||||
$(COMPOSE) up --build
|
||||
@ -34,6 +34,17 @@ dev-frontend:
|
||||
test-postgres:
|
||||
./backend/scripts/test-postgres.sh
|
||||
|
||||
# Dedicated offline, disposable loopback fake stack and real Playwright browser.
|
||||
test-e2e:
|
||||
@exec ./backend/scripts/test-e2e.sh
|
||||
|
||||
test-e2e-supervisor:
|
||||
python3 -E -B backend/scripts/test-e2e-supervisor.py
|
||||
|
||||
# Real stack + timeout regression; optional QA wrapper directory can be supplied.
|
||||
test-e2e-timeout:
|
||||
python3 -E -B backend/scripts/test-e2e-timeout.py $(if $(E2E_REPRO_WRAPPER),--wrapper-dir "$(E2E_REPRO_WRAPPER)",)
|
||||
|
||||
lint:
|
||||
@unformatted="$$(gofmt -l backend)"; if [ -n "$$unformatted" ]; then printf 'Go formatting required:\n%s\n' "$$unformatted"; exit 1; fi
|
||||
cd backend && go vet ./...
|
||||
|
||||
Reference in New Issue
Block a user