diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | Makefile | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -13,3 +13,6 @@ # build output /eduvpn-common-cli /lib + +# coverage profile +/common.cov @@ -1,5 +1,5 @@ .DEFAULT_GOAL := build -.PHONY: build fmt cli clean +.PHONY: build fmt cli clean coverage VERSION := $(shell grep -o 'const Version = "[^"]*' internal/version/version.go | cut -d '"' -f 2) @@ -23,3 +23,6 @@ test: clean: rm -rf lib go clean +coverage: + go test -v -coverpkg=./... -coverprofile=common.cov ./... + go tool cover -func common.cov |
