mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-11 13:38:41 +02:00
using covermode count
This commit is contained in:
parent
1ee7fafe96
commit
5bb80dd0a8
4
Makefile
4
Makefile
@ -7,11 +7,11 @@ setup: ## Install all the build and lint dependencies
|
||||
go get -u github.com/golang/dep/...
|
||||
go get -u github.com/pierrre/gotestcover
|
||||
go get -u golang.org/x/tools/cmd/cover
|
||||
dep ensure
|
||||
dep ensure
|
||||
gometalinter --install
|
||||
|
||||
test: ## Run all the tests
|
||||
gotestcover $(TEST_OPTIONS) -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
|
||||
gotestcover $(TEST_OPTIONS) -covermode=count -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
|
||||
|
||||
fmt: ## gofmt and goimports all go files
|
||||
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done
|
||||
|
Loading…
x
Reference in New Issue
Block a user