Skip to content

Commit

Permalink
use latest gotestsum
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Nov 5, 2023
1 parent 95dc443 commit cf597aa
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 cf597aa

Please sign in to comment.