forked from teambition/gear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (25 loc) · 821 Bytes
/
Makefile
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
test:
go test --race
go test --race ./logging
go test --race ./middleware/cors
go test --race ./middleware/favicon
go test --race ./middleware/static
go test --race ./middleware/secure
go test --race ./middleware/requestid
bench:
go test -bench=.
cover:
rm -f *.coverprofile
go test -coverprofile=gear.coverprofile
go test -coverprofile=logging.coverprofile ./logging
go test -coverprofile=cors.coverprofile ./middleware/cors
go test -coverprofile=favicon.coverprofile ./middleware/favicon
go test -coverprofile=static.coverprofile ./middleware/static
go test -coverprofile=secure.coverprofile ./middleware/secure
go test -coverprofile=secure.coverprofile ./middleware/requestid
gover
go tool cover -html=gover.coverprofile
rm -f *.coverprofile
doc:
godoc -http=:6060
.PHONY: test bench cover doc