We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939e2ac commit e96dbd4Copy full SHA for e96dbd4
Makefile
@@ -256,7 +256,10 @@ cleanup-minio-nginx:
256
257
test:
258
@echo "execute test and get coverage"
259
- @(cd restapi && mkdir coverage && GO111MODULE=on go test -test.v -coverprofile=coverage/coverage.out)
+ # 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)
263
264
265
test-pkg:
0 commit comments