From 3a91d56823e6b8bafd4edd6fd7c12eaac85df379 Mon Sep 17 00:00:00 2001 From: Alessandro Arzilli Date: Mon, 12 Dec 2022 18:59:39 +0100 Subject: [PATCH] Documentation: add -test.run to test example (#3212) Add -test.run to the example of how 'dlv test' can be used. --- Documentation/usage/dlv_test.md | 2 +- cmd/dlv/cmds/commands.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/usage/dlv_test.md b/Documentation/usage/dlv_test.md index 9da841160c..cdeeac4179 100644 --- a/Documentation/usage/dlv_test.md +++ b/Documentation/usage/dlv_test.md @@ -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'. diff --git a/cmd/dlv/cmds/commands.go b/cmd/dlv/cmds/commands.go index d76ffe79b0..6b1d479c9d 100644 --- a/cmd/dlv/cmds/commands.go +++ b/cmd/dlv/cmds/commands.go @@ -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,