From 69d558e37c0caa8dafa46d32e29a164c8766fa52 Mon Sep 17 00:00:00 2001 From: Kelvin Clement Mwinuka Date: Sun, 18 Feb 2024 02:52:35 +0800 Subject: [PATCH] Edited makefile test command to include code coverate stats --- .gitignore | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 00edf934..dc0ffab0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ bin volumes /config/ +/coverage/ diff --git a/Makefile b/Makefile index 39a04db2..14278ad9 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,4 @@ build: env CGO_ENABLED=1 CC=x86_64-linux-musl-gcc GOOS=linux GOARCH=amd64 DEST=bin/linux/x86_64 make build-server test: - go clean -testcache && go test ./... + go clean -testcache && go test ./src/... -coverprofile coverage/cover.out