Skip to content

Commit

Permalink
Adding make targets for unit tests and coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Volte6 committed Jan 4, 2025
1 parent fb37a62 commit 1253aa7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ shell:
.PHONY: validate
validate: fmtcheck vet

.PHONY: test
test:
@go test ./...

.PHONY: coverage
coverage:
@mkdir -p bin/covdatafiles && \
go test ./... -coverprofile=bin/covdatafiles/cover.out && \
go tool cover -html=bin/covdatafiles/cover.out && \
rm -rf bin

#
#
# For a complete list of GOOS/GOARCH combinations:
Expand Down

0 comments on commit 1253aa7

Please sign in to comment.