-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (51 loc) · 1.9 KB
/
Makefile
File metadata and controls
61 lines (51 loc) · 1.9 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: test test-go test-node test-server test-frontend test-central test-rtc test-worker test-kafka help
help:
@echo "Available test commands:"
@echo " make test - Run all tests (Go + Node.js)"
@echo " make test-go - Run all Go tests"
@echo " make test-node - Run all Node.js tests"
@echo " make test-server - Run server tests only"
@echo " make test-frontend - Run bsg-frontend tests only"
@echo " make test-central - Run central-service tests only"
@echo " make test-rtc - Run rtc-service tests only"
@echo " make test-worker - Run worker-service tests only"
@echo " make test-kafka - Run kafka-queue tests only"
# Run all tests
test: test-go test-node
@echo "✓ All tests completed"
# Run all Go tests across the workspace
test-go:
@echo "Running Go tests..."
@cd central-service && go test ./... -v
@cd rtc-service && go test ./... -v
@cd worker-service && go test ./... -v
@cd kafka-queue && go test ./... -v
@echo "✓ Go tests completed"
# Run all Node.js tests
test-node: test-server test-frontend
@echo "✓ Node.js tests completed"
# Run server tests (Node.js with Jest)
test-server:
@echo "Running server tests..."
@cd server && npm test
# Run bsg-frontend tests (if configured)
test-frontend:
@echo "Running bsg-frontend tests..."
@if [ -f bsg-frontend/package.json ] && grep -q '"test"' bsg-frontend/package.json; then \
cd bsg-frontend && npm test; \
else \
echo "⊘ No test script configured for bsg-frontend"; \
fi
# Run service-specific tests
test-central:
@echo "Running central-service tests..."
@cd central-service && go test ./... -v
test-rtc:
@echo "Running rtc-service tests..."
@cd rtc-service && go test ./... -v
test-worker:
@echo "Running worker-service tests..."
@cd worker-service && go test ./... -v
test-kafka:
@echo "Running kafka-queue tests..."
@cd kafka-queue && go test ./... -v