Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests for AWS #2483

Merged
merged 2 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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