Skip to content

Commit

Permalink
Documentation: add -test.run to test example (go-delve#3212)
Browse files Browse the repository at this point in the history
Add -test.run to the example of how 'dlv test' can be used.
  • Loading branch information
aarzilli authored Dec 12, 2022
1 parent 8e48ad7 commit 3a91d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/usage/dlv_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'.

Expand Down
2 changes: 1 addition & 1 deletion cmd/dlv/cmds/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a91d56

Please sign in to comment.