Skip to content

Commit

Permalink
remove outdated comment, track cover dirs separately
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhang committed Aug 3, 2023
1 parent 0aecc71 commit a2e5f59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ GOVULNCHECK = $(GOBIN)/govulncheck
BENCH_FLAGS ?= -cpuprofile=cpu.pprof -memprofile=mem.pprof -benchmem

# Directories containing independent Go modules.
#
# We track coverage only for the main module.
MODULE_DIRS = . ./exp ./benchmarks ./zapgrpc/internal/test

# Directories that we want to track coverage for.
COVER_DIRS = . ./exp

# Many Go tools take file globs or directories as arguments instead of packages.
GO_FILES := $(shell \
find . '(' -path '*/.*' -o -path './vendor' ')' -prune \
Expand Down Expand Up @@ -57,7 +58,7 @@ test:

.PHONY: cover
cover:
@$(foreach dir,$(MODULE_DIRS), ( \
@$(foreach dir,$(COVER_DIRS), ( \
cd $(dir) && \
go test -race -coverprofile=cover.out -coverpkg=./... ./... \
&& go tool cover -html=cover.out -o cover.html) &&) true
Expand Down

0 comments on commit a2e5f59

Please sign in to comment.