Skip to content

Commit e96dbd4

Browse files
authored
Add all possible tests under restapi (#3174)
1 parent 939e2ac commit e96dbd4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ cleanup-minio-nginx:
256256

257257
test:
258258
@echo "execute test and get coverage"
259-
@(cd restapi && mkdir coverage && GO111MODULE=on go test -test.v -coverprofile=coverage/coverage.out)
259+
# https://stackoverflow.com/questions/19200235/golang-tests-in-sub-directory
260+
# Note: go test ./... will run tests on the current folder and all subfolders.
261+
# This is needed because tests can be in the folder or sub-folder(s), let's include them all please!.
262+
@(cd restapi && mkdir -p coverage && GO111MODULE=on go test ./... -test.v -coverprofile=coverage/coverage.out)
260263

261264

262265
test-pkg:

0 commit comments

Comments
 (0)