diff --git a/.gitignore b/.gitignore index 4dfd49fe87..84ab72e4dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.swo *.swp .idea/* -tools/bin \ No newline at end of file +tools/bin +tools/cover.out \ No newline at end of file diff --git a/tools/Makefile b/tools/Makefile index 448e0882a1..b2c2098272 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -11,3 +11,10 @@ lint: bin/golangci-lint bin/golangci-lint: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.31.0 + +test: + go test ./... + +cover: + go test -coverprofile=cover.out $(GO_TEST_FLAGS) ./... + go tool cover -func=cover.out