docs: add run test cmd for golang
This commit is contained in:
parent
6efc11c682
commit
ce6d71c5c4
|
@ -1,6 +1,12 @@
|
||||||
# Debugging
|
# Debugging
|
||||||
|
|
||||||
- debug a specific test-case
|
- debug a specific test-case
|
||||||
```sh
|
```sh
|
||||||
dlv test --build-flags='path/to/module' -- -test.run ^TestFunctionName$
|
dlv test --build-flags='path/to/module' -- -test.run ^TestFunctionName$
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- run a specific test-case
|
||||||
|
```
|
||||||
|
go test -run TestFunctionName
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user