Skip to content

Commit 1253aa7

Browse files
committed
Adding make targets for unit tests and coverage report
1 parent fb37a62 commit 1253aa7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ shell:
6767
.PHONY: validate
6868
validate: fmtcheck vet
6969

70+
.PHONY: test
71+
test:
72+
@go test ./...
73+
74+
.PHONY: coverage
75+
coverage:
76+
@mkdir -p bin/covdatafiles && \
77+
go test ./... -coverprofile=bin/covdatafiles/cover.out && \
78+
go tool cover -html=bin/covdatafiles/cover.out && \
79+
rm -rf bin
80+
7081
#
7182
#
7283
# For a complete list of GOOS/GOARCH combinations:

0 commit comments

Comments
 (0)