-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 761 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 761 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
38
39
40
41
.PHONY: test cover htmlcover bench vet lint build test-fast clean all
# Run all tests with verbose output
test:
go test -v ./...
# Run tests with coverage summary
cover:
go test -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
# Generate HTML coverage report
htmlcover: cover
go tool cover -html=coverage.out -o coverage.html
# Run all benchmarks
bench:
go test -bench=. -benchmem ./...
# Static analysis
vet:
go vet ./...
# Lint check (requires golangci-lint)
lint:
golangci-lint run ./...
# Verify compilation
build:
go build ./...
# Run tests without verbose output (faster feedback)
test-fast:
go test ./...
# Clean generated files
clean:
rm -f coverage.out coverage.html
# Full pipeline
all: vet test cover bench build