From 0ce2e87dfd83529b89e6c2a870c00f6ae84d5e7e Mon Sep 17 00:00:00 2001 From: Kinshuk Bairagi Date: Tue, 6 Feb 2024 13:04:52 +0530 Subject: [PATCH] Update makefile to publish coverage report --- .gitignore | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5389f5e4..0a236652 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,7 @@ crashlytics-build.properties # Reports *reports +coverage.out .DS_Store bin/ diff --git a/Makefile b/Makefile index 0a94bac4..c5ce3dec 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ test: @echo " CGO_LDFLAGS = $(CGO_LDFLAGS)" @echo " BUILD_TAGS = $(BUILD_TAGS)" @echo " ADD_LDFLAGS = $(ALDFLAGS)" - @$(GO) test -v --count=1 -tags="$(BUILD_TAGS)" $(ALDFLAGS) $(PACKAGES) + @$(GO) test -v --count=1 -coverprofile=coverage.out -tags="$(BUILD_TAGS)" $(ALDFLAGS) $(PACKAGES) .PHONY: bench bench: