Debian Codegraph @

Makefile

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