aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7ecc33b674d3f7d498a4a8afcb2228682698ca20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pkgs	:= $(shell go list ./...)

.PHONY: test
test: lint ## Run tests with coverage
	go test -race -short -cover -coverprofile coverage.out $(pkgs)
	go tool cover -html=coverage.out -o coverage.html

.PHONY: lint
lint:
	golint $(pkgs)

.PHONY: clean
clean: ## Clean all test files
	rm -rf coverage*