Skip to content

Commit

Permalink
add makefile targets for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Hellmann <[email protected]>
  • Loading branch information
dhellmann committed Nov 12, 2020
1 parent 16d1dd5 commit 687e846
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.swo
*.swp
.idea/*
tools/bin
tools/bin
tools/cover.out
7 changes: 7 additions & 0 deletions tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 687e846

Please sign in to comment.