main
Raw Download raw file
 1# General
 2WORKDIR = $(PWD)
 3
 4# Go parameters
 5GOCMD = go
 6GOTEST = $(GOCMD) test
 7
 8# Coverage
 9COVERAGE_REPORT = coverage.out
10COVERAGE_MODE = count
11
12test:
13	$(GOTEST) ./...
14
15test-coverage:
16	echo "" > $(COVERAGE_REPORT); \
17	$(GOTEST) -coverprofile=$(COVERAGE_REPORT) -coverpkg=./... -covermode=$(COVERAGE_MODE) ./...