-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 1.01 KB
/
Makefile
File metadata and controls
42 lines (31 loc) · 1.01 KB
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
38
39
40
41
42
.PHONY: all build web test clean test-unit test-integration test-e2e test-web test-all test-race
all: build
# Build Web UI (required before Go build)
web:
cd web && pnpm install && pnpm build
# Build Go binary (requires web to be built first)
build: web
go build -o bin/zen .
# Run Go unit tests (no build tags, fast)
test-unit:
go test -race -count=1 ./...
# Run Go integration tests (requires built binary)
test-integration: build
go test -tags=integration -v -timeout 120s ./test/integration/...
# Run Go e2e tests (requires built binary)
test-e2e: build
go test -tags=integration -v -timeout 180s ./tests/...
# Run frontend tests with coverage
test-web:
cd web && pnpm install && pnpm test -- --run --coverage
# Run all test tiers in sequence
test-all: test-unit test-integration test-e2e test-web
@echo "All test tiers complete."
# Legacy alias
test: test-unit
# Run tests with race detector (legacy alias)
test-race:
go test -race -count=1 ./...
# Clean build artifacts
clean:
rm -rf bin/ internal/web/dist/