-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 919 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: setup backend frontend run clean test haiku-tester e2e e2e-docker
setup:
cd backend && uv sync
cd frontend && npm install
backend:
cd backend && uv run python main.py
frontend:
cd frontend && npm run dev
run:
@echo "Starting backend and frontend..."
@bash -c 'trap "kill 0" EXIT SIGINT SIGTERM; \
(cd backend && uv run python main.py) & \
(cd frontend && npm run dev) & \
wait'
clean:
rm -rf backend/.venv
rm -rf frontend/node_modules
test:
cd backend && uv run pytest
haiku-tester:
cd backend && uv run pytest ../tests/haiku-tester/ -v
# E2E tests in Docker with controlled test fixtures
# This is the ONLY way to run E2E tests - ensures reproducible state
e2e:
docker compose -f tests/docker-compose.e2e.yml up --build --abort-on-container-exit --exit-code-from playwright
# E2E test cleanup
e2e-clean:
docker compose -f tests/docker-compose.e2e.yml down --volumes --remove-orphans