Skip to content

Commit

Permalink
Add coverage to the test command
Browse files Browse the repository at this point in the history
  • Loading branch information
colega committed Jan 10, 2020
1 parent 0142d3c commit bd5f197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ help: ## Show the help text
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[93m %s\n", $$1, $$2}'

test: ## Run unit tests
@go test -race ./...
@go test -coverprofile=coverage.out -covermode=atomic -race ./...

lint: # Run linters using golangci-lint
@golangci-lint run
Expand Down

0 comments on commit bd5f197

Please sign in to comment.