Skip to content

Commit

Permalink
Perform integration testing with parallel=1
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Feb 13, 2024
1 parent a3efcc8 commit 802001c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ test: ## Run testing

test-integration: ## Run integration testing
@echo 'mode: atomic' > coverage.out
@go list ./... | xargs -n1 -I{} sh -c 'CGO_ENABLED=1 go test -race -tags=integration -covermode=atomic -coverprofile=coverage.tmp -coverpkg $(go list ./... | tr "\n" ",") {} && tail -n +2 coverage.tmp >> coverage.out || exit 255'
@rm coverage.tmp
@CGO_ENABLED=1 go test -race -tags=integration -covermode=atomic -parallel=1 -coverprofile=coverage.out ./...

test-cover: ## Collect code coverage
@echo "-> Running go tool cover"
Expand Down

0 comments on commit 802001c

Please sign in to comment.