-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
84 lines (67 loc) · 2.23 KB
/
Makefile
File metadata and controls
84 lines (67 loc) · 2.23 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.PHONY: test test-unit test-integration test-coverage test-race test-verbose clean diagram
test:
@echo "Running all tests..."
go test ./...
test-unit:
@echo "Running unit tests..."
go test -short ./...
test-integration:
@echo "Running integration tests..."
go test -run Integration ./...
test-coverage:
@echo "Generating coverage report..."
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report generated: coverage.html"
test-race:
@echo "Running tests with race detector..."
go test -race ./...
test-verbose:
@echo "Running tests with verbose output..."
go test -v ./...
test-security:
@echo "Running security tests..."
go test -v ./security/...
test-utils:
@echo "Running utils tests..."
go test -v ./utils/...
test-api:
@echo "Running API tests..."
go test -v ./api/...
clean:
@echo "Cleaning test cache and coverage files..."
go clean -testcache
rm -f coverage.out coverage.html
build:
@echo "Building application..."
go build -o conductor .
run:
@echo "Running application..."
go run main.go
diagram:
@echo "Launching architecture diagram..."
go run ./cmd/diagram
api-docs:
@echo "Serving API docs at http://localhost:8090..."
@open http://localhost:8090/api.html &
@cd docs && python3 -m http.server 8090
security-scan:
@echo "Running security scan..."
./scripts/security-check.sh
help:
@echo "Available targets:"
@echo " test - Run all tests"
@echo " test-unit - Run unit tests only"
@echo " test-integration - Run integration tests"
@echo " test-coverage - Generate coverage report"
@echo " test-race - Run tests with race detector"
@echo " test-verbose - Run tests with verbose output"
@echo " test-security - Run security component tests"
@echo " test-utils - Run utility tests"
@echo " test-api - Run API tests"
@echo " clean - Clean test cache and coverage files"
@echo " build - Build the application"
@echo " run - Run the application"
@echo " diagram - Launch interactive architecture diagram"
@echo " api-docs - Serve OpenAPI docs at localhost:8090"
@echo " security-scan - Run security vulnerability scan"