88# ----------------------------------------------------------------------------------------------------------------------
99
1010# This is the version of the coherence-go-client
11- VERSION ?=2.0.0
11+ VERSION ?=2.0.0-rc1
1212CURRDIR := $(shell pwd)
1313USER_ID := $(shell echo "`id -u`:`id -g`")
1414
@@ -271,7 +271,7 @@ trivy-scan: gettrivy ## Scan the CLI using trivy
271271test : test-clean gotestsum $(BUILD_PROPS ) # # Run the unit tests
272272 CGO_ENABLED=0 $(GOTESTSUM ) --format testname --junitfile $(TEST_LOGS_DIR ) /coherence-test.xml \
273273 -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-unit.out ./coherence/...
274- go tool cover -html =$(COVERAGE_DIR ) /cover-unit.out -o $( COVERAGE_DIR ) /cover-unit.html
274+ go tool cover -func =$(COVERAGE_DIR ) /cover-unit.out | grep -v ' 0.0% '
275275
276276
277277# ----------------------------------------------------------------------------------------------------------------------
@@ -280,48 +280,35 @@ test: test-clean gotestsum $(BUILD_PROPS) ## Run the unit tests
280280.PHONY : test-e2e-standalone
281281test-e2e-standalone : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence
282282 CGO_ENABLED=0 $(GOTESTSUM ) --format testname --junitfile $(TEST_LOGS_DIR ) /go-client-test.xml \
283- -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional.out -v ./test/e2e/standalone/... -coverpkg=./coherence/...
284- go tool cover -html=$(COVERAGE_DIR ) /cover-functional.out -o $(COVERAGE_DIR ) /cover-functional.html
285- @echo
286- @echo " **** CODE COVERAGE ****"
287- @cat $(COVERAGE_DIR ) /cover-functional.html | grep ' github.com/oracle/coherence-go-client/coherence' | grep option | sed ' s/^.*github/github/' | sed ' s,</option.*,,'
283+ -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional.out -v ./test/e2e/standalone/... -coverpkg=github.com/oracle/coherence-go-client/v2/coherence/...
284+ go tool cover -func=$(COVERAGE_DIR ) /cover-functional.out | grep -v ' 0.0%'
288285
289286# ----------------------------------------------------------------------------------------------------------------------
290287# Executes the Go end to end tests for standalone Coherence with Scope set
291288# ----------------------------------------------------------------------------------------------------------------------
292289.PHONY : test-e2e-standalone-scope
293290test-e2e-standalone-scope : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence with Scope set
294291 CGO_ENABLED=0 $(GOTESTSUM ) --format testname --junitfile $(TEST_LOGS_DIR ) /go-client-test-scope.xml \
295- -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional-scope.out -v ./test/e2e/scope/... -coverpkg=./coherence/...
296- go tool cover -html=$(COVERAGE_DIR ) /cover-functional-scope.out -o $(COVERAGE_DIR ) /cover-functional-scope.html
297- @echo
298- @echo " **** CODE COVERAGE ****"
299- @cat $(COVERAGE_DIR ) /cover-functional-scope.html | grep ' github.com/oracle/coherence-go-client/coherence' | grep option | sed ' s/^.*github/github/' | sed ' s,</option.*,,'
292+ -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional-scope.out -v ./test/e2e/scope/... -coverpkg=github.com/oracle/coherence-go-client/v2/coherence/...
293+ go tool cover -func=$(COVERAGE_DIR ) /cover-functional-scope.out | grep -v ' 0.0%'
300294
301295# ----------------------------------------------------------------------------------------------------------------------
302296# Executes the Go end to end tests for standalone Coherence with Queues
303297# ----------------------------------------------------------------------------------------------------------------------
304298.PHONY : test-e2e-standalone-queues
305299test-e2e-standalone-queues : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence queues
306300 CGO_ENABLED=0 $(GOTESTSUM ) --format testname --junitfile $(TEST_LOGS_DIR ) /go-client-test-queues.xml \
307- -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional-queues.out -v ./test/e2e/queues/... -coverpkg=./coherence/...
308- go tool cover -html=$(COVERAGE_DIR ) /cover-functional-queues.out -o $(COVERAGE_DIR ) /cover-functional-queues.html
309- @echo
310- @echo " **** CODE COVERAGE ****"
311- @cat $(COVERAGE_DIR ) /cover-functional-queues.html | grep ' github.com/oracle/coherence-go-client/coherence' | grep option | sed ' s/^.*github/github/' | sed ' s,</option.*,,'
301+ -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional-queues.out -v ./test/e2e/queues/... -coverpkg=github.com/oracle/coherence-go-client/v2/coherence/...
302+ go tool cover -func=$(COVERAGE_DIR ) /cover-functional-queues.out | grep -v ' 0.0%'
312303
313304# ----------------------------------------------------------------------------------------------------------------------
314305# Executes the Go end to end tests for gRPC v1 tests
315306# ----------------------------------------------------------------------------------------------------------------------
316307.PHONY : test-v1-base
317308test-v1-base : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence
318309 CGO_ENABLED=0 $(GOTESTSUM ) --format testname --junitfile $(TEST_LOGS_DIR ) /go-client-test-v1.xml \
319- -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional-v1.out -v ./test/v1/base/... -coverpkg=./coherence/...
320- go tool cover -html=$(COVERAGE_DIR ) /cover-functional-v1.out -o $(COVERAGE_DIR ) /cover-functional-v1.html
321- @echo
322- @echo " **** CODE COVERAGE ****"
323- @cat $(COVERAGE_DIR ) /cover-functional-v1.html | grep ' github.com/oracle/coherence-go-client/coherence' | grep option | sed ' s/^.*github/github/' | sed ' s,</option.*,,'
324-
310+ -- $(GO_TEST_FLAGS ) -v -coverprofile=$(COVERAGE_DIR ) /cover-functional-v1.out -v ./test/v1/base/... -coverpkg=github.com/oracle/coherence-go-client/v2/coherence/...
311+ go tool cover -func=$(COVERAGE_DIR ) /cover-functional-v1.out | grep -v ' 0.0%'
325312
326313# ----------------------------------------------------------------------------------------------------------------------
327314# Executes the test of the examples
@@ -369,7 +356,7 @@ test-coherence-shutdown: ## shutdown standalone cluster
369356.PHONY : gotestsum
370357GOTESTSUM = $(TOOLS_BIN ) /gotestsum
371358gotestsum : # # Download gotestsum locally if necessary.
372- GOBIN=` pwd` /build/tools/bin go install gotest.tools/gotestsum@v1.8.1
359+ GOBIN=` pwd` /build/tools/bin go install gotest.tools/gotestsum@v1.12.0
373360
374361# ----------------------------------------------------------------------------------------------------------------------
375362# Cleans the test cache
0 commit comments