Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
.vscode/
.idea/
.idea/
coverage.*
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
PACKAGES ?= "$(shell go list ./... | grep -v tests)"

test:
@go test -race $(shell echo $(PACKAGES))
@go test ./... -coverprofile=coverage.out.tmp
cat coverage.out.tmp | grep -v "/mocks/" > coverage.out
@go tool cover -func=coverage.out

local-coverage: test
@go tool cover -html=coverage.out -o coverage.html
@echo "\n\n open the coverage.html on your browser !!!"

lint:
@golangci-lint run
Loading