Skip to content

Commit fe17c65

Browse files
committed
enable coverage measurement
- also generate html report
1 parent fd446dc commit fe17c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ mock_gen:
5757

5858
.PHONY: test
5959
test:
60-
go test -race ./...
61-
cd konnectivity-client && go test -race ./...
60+
go test -race -covermode=atomic -coverprofile=server.out ./... && go tool cover -html=server.out -o=server.html
61+
cd konnectivity-client && go test -race -covermode=atomic -coverprofile=client.out ./... && go tool cover -html=client.out -o=client.html
6262

6363
## --------------------------------------
6464
## Binaries

0 commit comments

Comments
 (0)