From ce6d71c5c440b691fca462a6f8270fa065a39a7d Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 29 Sep 2021 00:13:27 +0800 Subject: [PATCH] docs: add run test cmd for golang --- doc/golang.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/golang.md b/doc/golang.md index 98a7dce..48f1c8b 100644 --- a/doc/golang.md +++ b/doc/golang.md @@ -1,6 +1,12 @@ # Debugging + - debug a specific test-case ```sh dlv test --build-flags='path/to/module' -- -test.run ^TestFunctionName$ ``` +- run a specific test-case +``` +go test -run TestFunctionName +``` +