-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move gotestsum install to separate task
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,6 @@ RELEASES = $(BINARY_NAME)-windows-amd64.exe $(BINARY_NAME)-windows-386.exe $(BIN | |
|
||
default: build | ||
|
||
setup: | ||
@echo "Installing build tools..." | ||
@go install gotest.tools/[email protected] | ||
|
||
lint: | ||
@go install github.com/google/[email protected] | ||
ifeq ($(OS),Windows_NT) | ||
|
@@ -88,29 +84,33 @@ else | |
@rm -rf build/ | ||
endif | ||
|
||
test: mocks | ||
|
||
install-gotestsum: | ||
@go install gotest.tools/[email protected] | ||
|
||
test: mocks install-gotestsum | ||
@echo "Testing $(BINARY_NAME)..." | ||
@gotestsum ${testopts} --format testdox -- -tags=unit -v -race ./... | ||
|
||
integration-test: mocks | ||
integration-test: mocks install-gotestsum | ||
@gotestsum ${testopts} --format testdox -- -tags=integration -timeout=30m -v -race ./... | ||
|
||
integration-test-v1: mocks | ||
integration-test-v1: mocks install-gotestsum | ||
@gotestsum ${testopts} --format testdox -- -tags=integration_v1 -timeout=30m -v -race ./... | ||
|
||
download-restore-test: mocks | ||
download-restore-test: mocks install-gotestsum | ||
@gotestsum ${testopts} --format testdox -- -tags=download_restore -timeout=30m -v -race ./... | ||
|
||
clean-environments: | ||
@MONACO_ENABLE_DANGEROUS_COMMANDS=1 go run ./cmd/monaco purge cmd/monaco/integrationtest/v2/test-resources/test_environments_manifest.yaml | ||
|
||
nightly-test:mocks | ||
nightly-test:mocks install-gotestsum | ||
@gotestsum ${testopts} --format testdox -- -tags=nightly -timeout=240m -v -race ./... | ||
|
||
# Build and Test a single package supplied via pgk variable, without using test cache | ||
# Run as e.g. make test-package pkg=project | ||
pkg=... | ||
test-package: setup mocks lint | ||
test-package: mocks lint install-gotestsum | ||
@echo "Testing ${pkg}..." | ||
@gotestsum -- -tags=unit -count=1 -v -race ./pkg/${pkg} | ||
|
||
|