Skip to content

Commit

Permalink
GOEXPERIMENT=nocoverageredesign
Browse files Browse the repository at this point in the history
  • Loading branch information
singholt committed Jun 12, 2024
1 parent 856319d commit dcfc524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,19 +149,19 @@ test-ebs-csi:
make -C ./ecs-agent/daemonimages/csidriver test

test: test-ebs-csi
cd agent && GO111MODULE=on ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
cd agent && GO111MODULE=on GOEXPERIMENT=nocoverageredesign ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile.out
cd ecs-agent && GO111MODULE=on ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
cd ecs-agent && GO111MODULE=on GOEXPERIMENT=nocoverageredesign ${GOTEST} ${VERBOSE} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile-ecs-agent.out

test-init:
go test -count=1 -short -v -coverprofile cover.out ./ecs-init/...
GOEXPERIMENT=nocoverageredesign go test -count=1 -short -v -coverprofile cover.out ./ecs-init/...
go tool cover -func cover.out > coverprofile-init.out

test-silent: test-ebs-csi
cd agent && GO111MODULE=on ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
cd agent && GO111MODULE=on GOEXPERIMENT=nocoverageredesign ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile.out
cd ecs-agent && GO111MODULE=on ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
cd ecs-agent && GO111MODULE=on GOEXPERIMENT=nocoverageredesign ${GOTEST} -tags unit -mod vendor -coverprofile ../cover.out -timeout=120s ./... && cd ..
go tool cover -func cover.out > coverprofile-ecs-agent.out

.PHONY: analyze-cover-profile
Expand Down

0 comments on commit dcfc524

Please sign in to comment.