Skip to content

Commit 55ffb6d

Browse files
committed
update coveralls to exclude statik
1 parent 1fc7c28 commit 55ffb6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ clean: check-go ## runs `go clean` and removes the bin/ dir
4343
$(GOCLEAN) --modcache
4444
rm -rf $(GOBIN)
4545

46+
# cover: check-go static ## runs test suite with coverage profiling
47+
# $(GOTEST) ./... -coverprofile=$(COVER_FILE)
4648
cover: check-go static ## runs test suite with coverage profiling
47-
$(GOTEST) ./... -coverprofile=$(COVER_FILE)
49+
PKGS=$$(go list ./... | grep -v "github.com/optimizely/agent/statik")
50+
$(GOTEST) $${PKGS} -coverprofile=$(COVER_FILE) -coverpkg=$$(echo $${PKGS} | tr ' ' ',')
4851

4952
cover-html: cover ## generates test coverage html report
5053
$(GOCMD) tool cover -html=$(COVER_FILE)

0 commit comments

Comments
 (0)