Skip to content

Commit

Permalink
add unittest cover (databus23#471)
Browse files Browse the repository at this point in the history
* add unittest cover

Signed-off-by: yxxhero <aiopsclub@163.com>

* remove -p=1 for cover

Signed-off-by: yxxhero <aiopsclub@163.com>

---------

Signed-off-by: yxxhero <aiopsclub@163.com>
  • Loading branch information
yxxhero authored and hexcsl committed Jul 3, 2023
1 parent c2f0f77 commit 9fd0caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ build: lint

.PHONY: test
test:
go test -v ./...
go test -v ./... -coverprofile cover.out -race
go tool cover -func cover.out

.PHONY: bootstrap
bootstrap:
Expand Down

0 comments on commit 9fd0caa

Please sign in to comment.