From ec6e0e2a832fde62c6e30102eb54ae76b3c534c1 Mon Sep 17 00:00:00 2001 From: Joao Paulo Vieira Date: Sun, 18 Jan 2026 22:36:52 -0300 Subject: [PATCH 1/2] Add tests coverage visibility --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2fbdb92..aff47a1 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file From f2a256955dd7e236c3017605ea4d4d41df4e0ddb Mon Sep 17 00:00:00 2001 From: Joao Paulo Vieira Date: Sun, 18 Jan 2026 22:44:42 -0300 Subject: [PATCH 2/2] Add coverage files to ignored list --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3c117c4..5fc9443 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.swp .vscode/ -.idea/ \ No newline at end of file +.idea/ +coverage.* \ No newline at end of file