From 15e2403788557ee373cb21fda3faacd7896fcd9b Mon Sep 17 00:00:00 2001 From: Pavlos Tzianos Date: Wed, 21 Feb 2024 22:04:58 +0000 Subject: [PATCH] Add test coverage to tests (Part of #97) Signed-off-by: Pavlos Tzianos Signed-off-by: Pavlos Tzianos --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6835fef07..15c5fe204 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,8 @@ install-lint-tools: @go install github.com/bufbuild/buf/cmd/buf@v1.28.1 go-tests: - @go test -race -json $(GO_TEST_PACKAGES) + @mkdir -p tests/output + @go test -race -json -coverprofile tests/output/cover.out $(GO_TEST_PACKAGES) migration-tests: bin/cmd/draconctl @(DOCKER_COMPOSE) run