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