Skip to content

Commit

Permalink
Run coverage over all packages beneath COVERAGE_MOD_DIR (#573)
Browse files Browse the repository at this point in the history
This avoids any issue with tests that live outside the package in
which the code they're testing resides, e.g.
api/trace/b3_propagator.go
  • Loading branch information
evantorrie committed Mar 20, 2020
1 parent cc756f6 commit c95360f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif

GOTEST_MIN = go test -v -timeout 30s
GOTEST = $(GOTEST_MIN) -race
GOTEST_WITH_COVERAGE = $(GOTEST) -coverprofile=coverage.txt -covermode=atomic
GOTEST_WITH_COVERAGE = $(GOTEST) -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...

.DEFAULT_GOAL := precommit

Expand Down

0 comments on commit c95360f

Please sign in to comment.