Skip to content

Find, verify, and analyze leaked credentials

Improve test filtering in Makefile (#673)

Dustin Decker5b7eff5c5720
diff --git a/Makefile b/Makefile
index 9346d7136..2214eb180 100644
--- a/Makefile
+++ b/Makefile
@@ -28,13 +28,13 @@ test-failing:
CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/) | grep FAIL
test:
- CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/)
+ CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors)
test-race:
- CGO_ENABLED=1 go test -timeout=5m -race $(shell go list ./... | grep -v /vendor/)
+ CGO_ENABLED=1 go test -timeout=5m -race $(shell go list ./... | grep -v /vendor/ | grep -v pkg/detectors)
test-detectors:
- CGO_ENABLED=0 go test -tags=detectors -timeout=5m $(shell go list ./...)
+ CGO_ENABLED=0 go test -tags=detectors -timeout=5m $(shell go list ./... | grep pkg/detectors)
bench:
CGO_ENABLED=0 go test $(shell go list ./pkg/secrets/... | grep -v /vendor/) -benchmem -run=xxx -bench .