-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 733 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (24 loc) · 733 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
.PHONY: test alltest coverage coverage-html coverage-func generate lint build mkdocs clean help
test:
go test -coverprofile=coverage.out $$(go list ./... | grep -v fakes | grep -v ./tests/end2end)
alltest:
go test -coverprofile=coverage.out $$(go list ./... | grep -v fakes)
coverage-report: test
go tool cover -html=coverage.out -o coverage.html
@echo "HTML coverage report generated: coverage.html"
coverage-func: test
go tool cover -func=coverage.out
# Generate a clean coverage summary
coverage-summary:
./scripts/coverage_summary
lint:
golangci-lint run
build:
./scripts/build_binaries
generate:
./scripts/generate_fakes
mkdocs:
./scripts/run_mkdocs.sh
clean:
rm -f coverage.out coverage.html
rm -rf dist/