From 55f44a29c62b5276b96250d079b88bbf07d9e33a Mon Sep 17 00:00:00 2001 From: Jeff Regan Date: Tue, 1 Dec 2020 16:48:41 -0800 Subject: [PATCH] Update README.md --- plugin/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/README.md b/plugin/README.md index 53096e720..a71e8bd63 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -41,10 +41,17 @@ maintained by the kustomize maintainers for just that purpose. To see how this works, run any plugin test, e.g. this plugin written in bash: ``` -cd plugin/someteam.example.com/v1/bashedconfigmap +pushd plugin/someteam.example.com/v1/bashedconfigmap go test -v . +popd +``` + +For plugins with many tests, it's possible to target just one test: +``` +pushd plugin/builtin/patchstrategicmergetransformer +go test -v -run TestBadPatchStrategicMergeTransformer PatchStrategicMergeTransformer_test.go +popd ``` -and examine the associated Go test code. ### Plugin styles