We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93aaabb commit ec6e0e2Copy full SHA for ec6e0e2
1 file changed
Makefile
@@ -1,7 +1,13 @@
1
PACKAGES ?= "$(shell go list ./... | grep -v tests)"
2
3
test:
4
- @go test -race $(shell echo $(PACKAGES))
+ @go test ./... -coverprofile=coverage.out.tmp
5
+ cat coverage.out.tmp | grep -v "/mocks/" > coverage.out
6
+ @go tool cover -func=coverage.out
7
+
8
+local-coverage: test
9
+ @go tool cover -html=coverage.out -o coverage.html
10
+ @echo "\n\n open the coverage.html on your browser !!!"
11
12
lint:
13
@golangci-lint run
0 commit comments