File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33ALL_PACKAGES =$(shell go list ./... | grep -v "vendor")
44APP_EXECUTABLE ="raccoon"
55COVER_FILE ="/tmp/coverage.out"
6+ GOTEST_TAGS ?= dynamic
67
78all : setup compile
89
@@ -46,12 +47,16 @@ lint:
4647# Tests
4748
4849test : lint
49- ENVIRONMENT=test go test $(shell go list ./... | grep -v "vendor" | grep -v "integration") -v
50- @go list ./... | grep -v " vendor" | grep -v " integration" | xargs go test -count 1 -cover -short -race -timeout 1m -coverprofile ${COVER_FILE}
50+ ENVIRONMENT=test go test -tags $( GOTEST_TAGS ) $(shell go list ./... | grep -v "vendor" | grep -v "integration") -v
51+ @go list ./... | grep -v " vendor" | grep -v " integration" | xargs go test -tags $( GOTEST_TAGS ) - count 1 -cover -short -race -timeout 1m -coverprofile ${COVER_FILE}
5152 @go tool cover -func ${COVER_FILE} | tail -1 | xargs echo test coverage:
5253
54+ coverage :
55+ ENVIRONMENT=test go test -tags $(GOTEST_TAGS ) -coverprofile=${COVER_FILE} $(shell go list ./... | grep -v "vendor" | grep -v "integration") -v
56+ go tool cover -html=${COVER_FILE}
57+
5358test-bench : # run benchmark tests
54- @go test $(shell go list ./... | grep -v "vendor") -v -bench ./... -run=^Benchmark
59+ @go test -tags $( GOTEST_TAGS ) $(shell go list ./... | grep -v "vendor") -v -bench ./... -run=^Benchmark
5560
5661test_ci : setup test
5762
You can’t perform that action at this time.
0 commit comments