From 687e8466a590f1b011b40c7d8d5dd9c87f15f3a0 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 12 Nov 2020 14:47:18 -0500 Subject: [PATCH] add makefile targets for tests Signed-off-by: Doug Hellmann --- .gitignore | 3 ++- tools/Makefile | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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