Skip to content

Commit

Permalink
Add make rule for coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielseibel1 committed Jun 25, 2024
1 parent d42eba0 commit 6dea3ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
cover.out
cover.out
cover.html
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ check:
.PHONY: test
test:
go test --count 1 --cover --coverprofile=./cover.out ./...

coverage: test
go tool cover -html ./cover.out -o ./cover.html
xdg-open ./cover.html

0 comments on commit 6dea3ca

Please sign in to comment.