8
8
# ----------------------------------------------------------------------------------------------------------------------
9
9
10
10
# This is the version of the coherence-go-client
11
- VERSION ?=2.0.0
11
+ VERSION ?=2.0.0-rc1
12
12
CURRDIR := $(shell pwd)
13
13
USER_ID := $(shell echo "`id -u`:`id -g`")
14
14
@@ -271,7 +271,7 @@ trivy-scan: gettrivy ## Scan the CLI using trivy
271
271
test : test-clean gotestsum $(BUILD_PROPS ) # # Run the unit tests
272
272
CGO_ENABLED=0 $(GOTESTSUM ) --format testname --junitfile $(TEST_LOGS_DIR ) /coherence-test.xml \
273
273
-- $(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% '
275
275
276
276
277
277
# ----------------------------------------------------------------------------------------------------------------------
@@ -280,48 +280,35 @@ test: test-clean gotestsum $(BUILD_PROPS) ## Run the unit tests
280
280
.PHONY : test-e2e-standalone
281
281
test-e2e-standalone : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence
282
282
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%'
288
285
289
286
# ----------------------------------------------------------------------------------------------------------------------
290
287
# Executes the Go end to end tests for standalone Coherence with Scope set
291
288
# ----------------------------------------------------------------------------------------------------------------------
292
289
.PHONY : test-e2e-standalone-scope
293
290
test-e2e-standalone-scope : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence with Scope set
294
291
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%'
300
294
301
295
# ----------------------------------------------------------------------------------------------------------------------
302
296
# Executes the Go end to end tests for standalone Coherence with Queues
303
297
# ----------------------------------------------------------------------------------------------------------------------
304
298
.PHONY : test-e2e-standalone-queues
305
299
test-e2e-standalone-queues : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence queues
306
300
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%'
312
303
313
304
# ----------------------------------------------------------------------------------------------------------------------
314
305
# Executes the Go end to end tests for gRPC v1 tests
315
306
# ----------------------------------------------------------------------------------------------------------------------
316
307
.PHONY : test-v1-base
317
308
test-v1-base : test-clean test gotestsum $(BUILD_PROPS ) # # Run e2e tests with Coherence
318
309
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%'
325
312
326
313
# ----------------------------------------------------------------------------------------------------------------------
327
314
# Executes the test of the examples
@@ -369,7 +356,7 @@ test-coherence-shutdown: ## shutdown standalone cluster
369
356
.PHONY : gotestsum
370
357
GOTESTSUM = $(TOOLS_BIN ) /gotestsum
371
358
gotestsum : # # 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
373
360
374
361
# ----------------------------------------------------------------------------------------------------------------------
375
362
# Cleans the test cache
0 commit comments