|
@@ -1,9 +1,9 @@
|
|
|
-.PHONY: build format test
|
|
|
+.PHONY: build format test install coverage coverage-html
|
|
|
|
|
|
KYOKETSU = kyoketsu
|
|
|
|
|
|
build:
|
|
|
- go build -o ./build/linux/$(KYOKETSU)/$(KYOKETSU) ./cmd/$(KYOKETSU)/$(KYOKETSU).go
|
|
|
+ go build -x -v -cover -o ./build/linux/$(KYOKETSU)/$(KYOKETSU) ./cmd/$(KYOKETSU)/$(KYOKETSU).go
|
|
|
|
|
|
|
|
|
format:
|
|
@@ -17,5 +17,13 @@ install:
|
|
|
test:
|
|
|
go test -v ./...
|
|
|
|
|
|
+coverage:
|
|
|
+ go test -v ./... -cover
|
|
|
+
|
|
|
+
|
|
|
+coverage-html:
|
|
|
+ go test -v ./... -coverprofile=coverage.out
|
|
|
+ go tool cover -html=coverage.out -o coverage.html
|
|
|
+
|
|
|
|
|
|
|