Skip to content

Commit 4328840

Browse files
author
Cornelius Weig
committed
Add coverage target
1 parent 7dac31f commit 4328840

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ GO_LDFLAGS +="
3131

3232
GO_FILES := $(shell find . -type f -name '*.go')
3333

34+
.PHONY: test
3435
test:
3536
GO111MODULE=on go test ./...
3637

38+
.PHONY: coverage
39+
coverage: $(BUILD_DIR)
40+
GO111MODULE=on go test -coverprofile=coverage.txt -covermode=atomic ./...
41+
3742
all: $(TARGETS)
3843

3944
dev: ketall-linux-amd64

0 commit comments

Comments
 (0)