update doc about run single test (#17916)

Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
This commit is contained in:
Enwei Jiao 2022-06-30 14:00:18 +08:00 committed by GitHub
parent e9f3cae242
commit b32ff76696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,12 @@ $ make test-go
To run a single test case (TestSearchTask in /internal/proxy directory, for example): To run a single test case (TestSearchTask in /internal/proxy directory, for example):
```shell ```shell
$ go test -v ./internal/proxy/ -test.run TestSearchTask $ source scripts/setenv.sh && go test -v ./internal/proxy/ -test.run TestSearchTask
```
If using Mac with M1 chip
```
$ source scripts/setenv.sh && go test -tags=dynamic -v ./internal/proxy/ -test.run TestSearchTask
``` ```
### Code coverage ### Code coverage