Skip to content

Commit

Permalink
Run tests for AWS (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Mar 15, 2022
1 parent 5c043d0 commit 8bf19ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ lint: ## Run linter

.PHONY: test
test: ## Run tests
go test -shuffle=on -race ./...
go test -tags=aws -shuffle=on -race ./...

cover: ## Generate coverage report
@./hack/test-cover.sh

cover-html: ## Generate and show coverage report in HTML format
go test -shuffle=on -race ./... -count=1 -cover -covermode=atomic -coverprofile=coverage.out
go test -tags=aws -shuffle=on -race ./... -count=1 -cover -covermode=atomic -coverprofile=coverage.out
go tool cover -html coverage.out

.PHONY: verify-codegen
Expand Down
2 changes: 1 addition & 1 deletion hack/test-cover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
echo "" >coverage.txt

for d in $(go list ./... | grep -v vendor); do
go test -shuffle=on -race -coverprofile=profile.out -covermode=atomic $d
go test -tags=aws -shuffle=on -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >>coverage.txt
rm profile.out
Expand Down

0 comments on commit 8bf19ee

Please sign in to comment.