Skip to content

Commit

Permalink
use latest gotestsum (#354)
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu authored Nov 6, 2023
1 parent 95dc443 commit a0b6948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cdc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ unit_test: check_failpoint_ctl
|| { $(FAILPOINT_DISABLE); exit 1; }
$(FAILPOINT_DISABLE)

unit_test_in_verify_ci: check_failpoint_ctl tools/bin/gotestsum gocov gocov-xml
unit_test_in_verify_ci: check_failpoint_ctl gotestsum gocov gocov-xml
mkdir -p "$(TEST_DIR)"
$(FAILPOINT_ENABLE)
@export log_level=error;\
CGO_ENABLED=1 tools/bin/gotestsum --junitfile cdc-junit-report.xml -- -v -timeout 30m -p $(P) --race \
CGO_ENABLED=1 gotestsum --junitfile cdc-junit-report.xml -- -v -timeout 30m -p $(P) --race \
-covermode=atomic -coverprofile="$(TEST_DIR)/cov.unit.out" $(PACKAGES) \
|| { $(FAILPOINT_DISABLE); exit 1; }
gocov convert "$(TEST_DIR)/cov.unit.out" | gocov-xml > cdc-coverage.xml
Expand Down Expand Up @@ -231,8 +231,8 @@ gocov:
gocov-xml:
$(GO) install github.com/AlekSi/gocov-xml@latest

tools/bin/gotestsum: tools/check/go.mod
cd tools/check && $(GO) build -mod=mod -o ../bin/gotestsum gotest.tools/gotestsum
gotestsum:
$(GO) install gotest.tools/gotestsum@latest

tools/bin/errdoc-gen: tools/check/go.mod
cd tools/check && $(GO) build -mod=mod -o ../bin/errdoc-gen github.com/pingcap/errors/errdoc-gen
Expand Down

0 comments on commit a0b6948

Please sign in to comment.