3
0

add(makefile): coloring of coverage with grep

This commit is contained in:
Tit Petric
2018-08-15 20:29:56 +02:00
parent 9959ce8fba
commit a2f6982387
+8
View File
@@ -51,6 +51,14 @@ test: $(GOTEST)
$(GOTEST) -covermode count -coverprofile .cover.out -v ./...
$(GO) tool cover -func=.cover.out
test.sam: $(GOTEST)
$(GOTEST) -covermode count -coverprofile .cover.out -v ./sam/repository/...
$(GO) tool cover -func=.cover.out | grep --color "^\|[^0-9]0.0%"
test.crm: $(GOTEST)
$(GOTEST) -covermode count -coverprofile .cover.out -v ./crm/repository/...
$(GO) tool cover -func=.cover.out | grep --color "^\|[^0-9]0.0%"
test.rbac: $(GOTEST)
$(GOTEST) -covermode count -coverprofile .cover.out -v ./rbac/...
$(GO) tool cover -func=.cover.out