Skip to content

Commit

Permalink
[Update] Make test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGalek committed Jan 3, 2025
1 parent 4474072 commit 6aca7df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.PHONY: install tests
.PHONY: install tests coverage

install:
go mod tidy && go mod vendor

tests:
go test -v -covermode=set ./... -coverprofile=coverage.txt && go tool cover -func=coverage.txt
go test -v -covermode=set ./... -coverprofile=coverage.txt && go tool cover -func=coverage.txt
coverage:
go test -v -covermode=set ./... -coverprofile=coverage.txt && go tool cover -html=coverage.txt -o coverage.html && xdg-open coverage.html

0 comments on commit 6aca7df

Please sign in to comment.