From e96dbd444e8521b26a124dfd7a871cfd3820ef8e Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Tue, 26 Dec 2023 15:17:40 -0500 Subject: [PATCH] Add all possible tests under restapi (#3174) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6efab307b..a382939de 100644 --- a/Makefile +++ b/Makefile @@ -256,7 +256,10 @@ cleanup-minio-nginx: test: @echo "execute test and get coverage" - @(cd restapi && mkdir coverage && GO111MODULE=on go test -test.v -coverprofile=coverage/coverage.out) + # https://stackoverflow.com/questions/19200235/golang-tests-in-sub-directory + # Note: go test ./... will run tests on the current folder and all subfolders. + # This is needed because tests can be in the folder or sub-folder(s), let's include them all please!. + @(cd restapi && mkdir -p coverage && GO111MODULE=on go test ./... -test.v -coverprofile=coverage/coverage.out) test-pkg: