From 8670d9eb3239be109ba528942c0a9a8de4591fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= Date: Tue, 29 Oct 2024 15:20:59 +0100 Subject: [PATCH] CDPCP-13247 - improve test result overview on Jenkins job --- .gitignore | 4 ++++ Makefile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e690d9d0..112a268b 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,10 @@ workspace.xml # Coverage related report file(s) coverage.* +#test result xml file +report.xml +index.html + # Ignore the binary terraform-provider-cdp !terraform-provider-cdp/ diff --git a/Makefile b/Makefile index 4b509fa5..1a683b91 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ test-with-coverage: generate fmt vet # Run terraform provider acceptance tests testacc: - TF_ACC=1 TF_LOG=DEBUG go test ./... $(GO_FLAGS) $(TESTARGS) -run '^TestAcc.*$\' -count=1 -parallel=4 -timeout 90m -v + TF_ACC=1 TF_LOG=DEBUG gotestsum --format pkgname --junitfile report.xml -- -failfast -race -coverprofile=coverage.out ./... -run '^TestAcc.*$\' -count=1 -parallel=4 -timeout 90m -v # Build main binary main: build