chore: exclude protobuffers from code coverage

This commit is contained in:
Richard Ramos 2021-11-09 09:18:36 -04:00
parent 7ff5fcf838
commit df6757fc33
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ go-waku
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
*.out.tmp
coverage.html
coverage.json

View File

@ -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: