mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-11 13:38:37 +02:00
Run coverage over all packages beneath COVERAGE_MOD_DIR (#573)
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
This commit is contained in:
parent
cc756f6a8d
commit
c95360fc06
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ endif
|
|||||||
|
|
||||||
GOTEST_MIN = go test -v -timeout 30s
|
GOTEST_MIN = go test -v -timeout 30s
|
||||||
GOTEST = $(GOTEST_MIN) -race
|
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
|
.DEFAULT_GOAL := precommit
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user