Skip to content

Commit

Permalink
Capture TF coverage as well
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Dec 12, 2024
1 parent 0ceb608 commit b284f90
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
6 changes: 5 additions & 1 deletion provider-ci/internal/pkg/templates/bridged-provider/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ test:
.PHONY: test

test_provider:
cd provider && go test -v -short -coverprofile="coverage.txt" -coverpkg=./... ./... -parallel $(TESTPARALLELISM)
go test -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
./provider/...
.PHONY: test_provider

tfgen: schema
Expand Down
6 changes: 5 additions & 1 deletion provider-ci/test-providers/acme/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ test:
.PHONY: test

test_provider:
cd provider && go test -v -short -coverprofile="coverage.txt" -coverpkg=./... ./... -parallel $(TESTPARALLELISM)
go test -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
./provider/...
.PHONY: test_provider

tfgen: schema
Expand Down
6 changes: 5 additions & 1 deletion provider-ci/test-providers/aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ test:
.PHONY: test

test_provider:
cd provider && go test -v -short -coverprofile="coverage.txt" -coverpkg=./... ./... -parallel $(TESTPARALLELISM)
go test -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
./provider/...
.PHONY: test_provider

tfgen: schema
Expand Down
6 changes: 5 additions & 1 deletion provider-ci/test-providers/cloudflare/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ test:
.PHONY: test

test_provider:
cd provider && go test -v -short -coverprofile="coverage.txt" -coverpkg=./... ./... -parallel $(TESTPARALLELISM)
go test -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
./provider/...
.PHONY: test_provider

tfgen: schema
Expand Down
6 changes: 5 additions & 1 deletion provider-ci/test-providers/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ test:
.PHONY: test

test_provider:
cd provider && go test -v -short -coverprofile="coverage.txt" -coverpkg=./... ./... -parallel $(TESTPARALLELISM)
go test -v -short \
-coverprofile="coverage.txt" \
-coverpkg="./...,github.com/hashicorp/terraform-provider-..." \
-parallel $(TESTPARALLELISM) \
./provider/...
.PHONY: test_provider

tfgen: schema
Expand Down

0 comments on commit b284f90

Please sign in to comment.