Skip to content

Commit

Permalink
add coverage profile
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshsimaria committed Jan 4, 2019
1 parent f93e718 commit 271e4b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ jtimon-linux-amd64
.*
debug.test
jtimon-windows-amd64.exe
coverage.out
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ docker-sh: ## start the docker container and exec into shell, ensure you have pr

test: ## run the go tests
go vet
go test --cover -v
go test --cover -v --coverprofile=coverage.out
## go tool cover --html=coverage.out
go tool cover --func=coverage.out

help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand Down

0 comments on commit 271e4b6

Please sign in to comment.