Skip to content

Commit

Permalink
Support gotest (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist authored Jan 4, 2022
1 parent 04967fa commit 6885934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ SHELL := /bin/bash -o pipefail
# the output is consistent across environments.
VERSION ?= $(shell git describe --tags 2>/dev/null || git rev-parse --short HEAD)

# Enables support for tools such as https://github.com/rakyll/gotest
TEST_COMMAND ?= go test

TESTARGS ?= ./{cmd,pkg}/...

LDFLAGS = -ldflags "\
Expand Down Expand Up @@ -51,7 +54,7 @@ staticcheck:

.PHONY: test
test: config
go test -race $(TESTARGS)
@$(TEST_COMMAND) -race $(TESTARGS)

.PHONY: build
build: config
Expand Down

0 comments on commit 6885934

Please sign in to comment.