diff --git a/.gitignore b/.gitignore index 5389f5e4..0a236652 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,7 @@ crashlytics-build.properties # Reports *reports +coverage.out .DS_Store bin/ diff --git a/Makefile b/Makefile index 0a94bac4..c5ce3dec 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ test: @echo " CGO_LDFLAGS = $(CGO_LDFLAGS)" @echo " BUILD_TAGS = $(BUILD_TAGS)" @echo " ADD_LDFLAGS = $(ALDFLAGS)" - @$(GO) test -v --count=1 -tags="$(BUILD_TAGS)" $(ALDFLAGS) $(PACKAGES) + @$(GO) test -v --count=1 -coverprofile=coverage.out -tags="$(BUILD_TAGS)" $(ALDFLAGS) $(PACKAGES) .PHONY: bench bench: