-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
5 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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
lint: | ||
golangci-lint run | ||
|
||
test: | ||
go test -count=1 ./... | ||
# -cover coverage. | ||
# -shuffle=on runs the tests in a random order. | ||
# -race activates the data race detector. | ||
# -vet=all runs go vet to identify significant problems. If go vet finds any problems, go test reports those and does not run the test binary. | ||
# -failfast stops test execution when a given unit test fails. It allows tests executed in parallel to finish. | ||
.PHONY: test | ||
test: ## Go recompile and test with coverage | ||
go test ./... -cover -shuffle=on -race -vet=all -failfast |
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