Skip to content

Commit ed91725

Browse files
committed
tests: fix running tests to obtain coverage from all packages
1 parent 3439a34 commit ed91725

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ testrace:
2020
.PHONY: coverage
2121
coverage:
2222
@echo "Running tests with coveralls"
23-
go test -tags "$(TAGS)" $(go list ./... | grep -v test_helpers) -v -p 1 -covermode=atomic -coverprofile=$(COVERAGE_FILE) -count=1
23+
go test -tags "$(TAGS)" $(shell go list ./... | grep -v test_helpers) \
24+
-v -p 1 -covermode=atomic -coverprofile=$(COVERAGE_FILE) -count=1
2425
go tool cover -func=$(COVERAGE_FILE)
2526

2627
.PHONY: coveralls

0 commit comments

Comments
 (0)