Add all possible tests under restapi (#3174)

This commit is contained in:
Cesar Celis Hernandez
2023-12-26 15:17:40 -05:00
committed by GitHub
parent 939e2acb0b
commit e96dbd444e

View File

@@ -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: