-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
47 lines (35 loc) · 846 Bytes
/
Copy pathJustfile
File metadata and controls
47 lines (35 loc) · 846 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
42
43
44
45
46
47
# Justfile for gn project
# Run tests without verbose output
test-quiet:
go test ./...
# Run all tests
test:
go test -v -race -coverprofile=coverage.out ./...
# Run tests with coverage report
test-coverage: test
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report generated: coverage.html"
# Run tests and show coverage percentage
test-cover:
go test -cover ./...
# Run tests with specific timeout
test-timeout timeout="5m":
go test -timeout {{timeout}} -v ./...
# Run benchmarks
bench:
go test -bench=. -benchmem ./...
# Clean test cache and coverage files
clean:
go clean -testcache
rm -f coverage.out coverage.html
# Run go vet
vet:
go vet ./...
# Run go fmt
fmt:
go fmt ./...
# Run all checks (fmt, vet, test)
check: fmt vet test
# Show help
help:
@just --list