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

chore: Don't be verbose with tests locally #620

Merged
merged 2 commits into from
May 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,25 @@ node_modules/.installed: package.json package-lock.json

.PHONY: unit-test
unit-test: ## Runs all unit tests.
go mod vendor
# NOTE: go test builds packages even if there are no tests.
go test -mod=vendor -v ./...
@ # NOTE: go test builds packages even if there are no tests.
@set -e;\
go mod vendor; \
extraargs=""; \
if [ "$(OUTPUT_FORMAT)" == "github" ]; then \
extraargs="-v"; \
fi; \
go test -mod=vendor $$extraeargs ./...

.PHONY: regression-test
regression-test: ## Runs all regression and unit tests.
go mod vendor
# NOTE: go test builds packages even if there are no tests.
go test -mod=vendor -tags=regression -v -timeout=25m ./...
@ # NOTE: go test builds packages even if there are no tests.
@set -e;\
go mod vendor; \
extraargs=""; \
if [ "$(OUTPUT_FORMAT)" == "github" ]; then \
extraargs="-v"; \
fi; \
go test -mod=vendor -tags=regression $$extraeargs -timeout=25m ./...

## Tools
#####################################################################
Expand Down