Skip to content

Commit

Permalink
Added coverage report to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Apr 23, 2023
1 parent b6d7191 commit 5368e2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ build:
@go build -v

test:
@go test -v ./...
@go test -cover -v ./...

acceptance: build
@bats -r .

lint:
@golangci-lint run --fix

.PHONY: build test acceptance lint
cover:
@go test ./... -coverprofile=/tmp/cover.out
@go tool cover -html=/tmp/cover.out

.PHONY: build test acceptance lint cover

0 comments on commit 5368e2d

Please sign in to comment.