Documentation: add -test.run to test example (#3212)

Add -test.run to the example of how 'dlv test' can be used.
This commit is contained in:
Alessandro Arzilli 2022-12-12 18:59:39 +01:00 committed by GitHub
parent 8e48ad7574
commit 3a91d56823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -11,7 +11,7 @@ unit tests. By default Delve will debug the tests in the current directory.
Alternatively you can specify a package name, and Delve will debug the tests in
that package instead. Double-dashes `--` can be used to pass arguments to the test program:
dlv test [package] -- -test.v -other-argument
dlv test [package] -- -test.run TestSometing -test.v -other-argument
See also: 'go help testflag'.

@ -278,7 +278,7 @@ unit tests. By default Delve will debug the tests in the current directory.
Alternatively you can specify a package name, and Delve will debug the tests in
that package instead. Double-dashes ` + "`--`" + ` can be used to pass arguments to the test program:
dlv test [package] -- -test.v -other-argument
dlv test [package] -- -test.run TestSometing -test.v -other-argument
See also: 'go help testflag'.`,
Run: testCmd,