Skip to content

Commit 2bb05e2

Browse files
committed
chore: add cover target to inspect code coverage
1 parent 97bb8fb commit 2bb05e2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/dist
2+
/cover.out

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ build:
2020
.PHONY: fuzz
2121
fuzz: mod-tidy generate
2222
go test -fuzz='^Fuzz' -fuzztime=10s -v ./internal/server
23+
24+
.PHONY: cover
25+
cover: mod-tidy generate
26+
go test -v -covermode=atomic -coverprofile=cover.out -coverpkg=./... ./...
27+
go tool cover -html=cover.out

0 commit comments

Comments
 (0)