From df6757fc33ad351ccd25ef81b51bdeb8e83a05da Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 9 Nov 2021 09:18:36 -0400 Subject: [PATCH] chore: exclude protobuffers from code coverage --- .gitignore | 1 + Makefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0aeddcf7..52b16964 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ go-waku # Output of the go coverage tool, specifically when used with LiteIDE *.out +*.out.tmp coverage.html coverage.json diff --git a/Makefile b/Makefile index 270b6dad..4831a456 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,8 @@ lint: @golangci-lint --exclude=SA1019 run ./... --deadline=5m test: - go test ./waku/... -coverprofile=${GO_TEST_OUTFILE} + go test ./waku/... -coverprofile=${GO_TEST_OUTFILE}.tmp + cat ${GO_TEST_OUTFILE}.tmp | grep -v ".pb.go" > ${GO_TEST_OUTFILE} go tool cover -html=${GO_TEST_OUTFILE} -o ${GO_HTML_COV} _before-cc: