From 5db6237f2a687448351d5f972fbe904cf971289b Mon Sep 17 00:00:00 2001 From: roxanne-tampus <51393035+roxanne-tampus@users.noreply.github.com> Date: Thu, 1 Sep 2022 08:30:22 +0800 Subject: [PATCH] update docs (#764) --- hack/docs/Adding_Detectors_Internal.md | 4 ++++ hack/docs/Adding_Detectors_external.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/hack/docs/Adding_Detectors_Internal.md b/hack/docs/Adding_Detectors_Internal.md index c202954e..02d4f46e 100644 --- a/hack/docs/Adding_Detectors_Internal.md +++ b/hack/docs/Adding_Detectors_Internal.md @@ -123,3 +123,7 @@ Do not embed test credentials in the test code. Instead, use GCP Secrets Manager ```bash make protos ``` +### Testing a detector +```bash + go test ./pkg/detectors/ -tags=detectors + ``` diff --git a/hack/docs/Adding_Detectors_external.md b/hack/docs/Adding_Detectors_external.md index 3a8ebf0a..c1782efb 100644 --- a/hack/docs/Adding_Detectors_external.md +++ b/hack/docs/Adding_Detectors_external.md @@ -100,3 +100,8 @@ Now, the detector test should attempt to load the given env key from that file. ```bash make protos ``` + +### Testing a detector +```bash + go test ./pkg/detectors/ -tags=detectors + ``` \ No newline at end of file