14 lines
249 B
Makefile
14 lines
249 B
Makefile
TEST := go test
|
|
TEST_FLAGS ?= -v
|
|
TEST_TARGET ?= ./...
|
|
GO111MODULE=on
|
|
|
|
test:
|
|
$(TEST) $(TEST_FLAGS) $(TEST_TARGET)
|
|
|
|
coverprofile: TEST_FLAGS += -covermode=count -coverprofile=handlers.coverprofile
|
|
coverprofile: test
|
|
|
|
clean:
|
|
$(RM) -v *.coverprofile
|
|
|