We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181ab88 commit cfbb225Copy full SHA for cfbb225
Makefile
@@ -10,7 +10,14 @@ debs:
10
11
.PHONY: test
12
test:
13
- GOPATH=$(GOPATH) go test -race $$(go list ./... | grep -v example) -coverprofile=coverage.txt -covermode=atomic
+ -rm coverage.txt
14
+ @for package in $$(go list ./... | grep -v example) ; do \
15
+ GOPATH=$(GOPATH) go test -race -coverprofile=profile.out -covermode=atomic $$package ; \
16
+ if [ -f profile.out ]; then \
17
+ cat profile.out >> coverage.txt ; \
18
+ rm profile.out ; \
19
+ fi \
20
+ done
21
22
.PHONY: bench
23
bench:
0 commit comments