From aa8faf238c79e59e9e0e35c1baff0e086dac3246 Mon Sep 17 00:00:00 2001 From: DouPache Date: Tue, 31 Oct 2023 13:58:54 +0800 Subject: [PATCH 1/2] update e2e readme --- test/e2e/README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/test/e2e/README.md b/test/e2e/README.md index 03ace70be..ed70a1f76 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -46,13 +46,31 @@ OR follow this doc for deploying go https://golang.org/doc/install ### Trigger through CLI * Launching CI tests is as simple as below. -```console +```shell $ kubectl config use-context <> $ ginkgo -r -v ci -timeout=2h -- -yk-namespace "yunikorn" -kube-config "$HOME/.kube/config" ``` -* Launching all the tests can be done as.. -```console +* Launching all the tests can be done as. +```shell $ ginkgo -r -v -timeout=2h -- -yk-namespace "yunikorn" -kube-config "$HOME/.kube/config" ``` + +* Launching all the tests in specified e2e folder. +e.g. test/e2e/user_group_limit/ +```shell +$ cd test/e2e/ +$ ginkgo -r user_group_limit -v -- -yk-namespace "yunikorn" -kube-config "$HOME/.kube/config" +``` + +* Launching specified test. +e.g. The first augument of ginkgo.It() + +ginkgo.It( "Verify_maxapplications_with_a_specific_group_limit" , ... ) +```shell +$ cd test/e2e/ +$ ginkgo run -r -v --focus "Verify_maxapplications_with_a_specific_group_limit" \ +-- -yk-namespace "yunikorn" \ +-kube-config "$HOME/.kube/config" +``` From a909f45afe285ddd5e08ec9bcc7453a1c0188843 Mon Sep 17 00:00:00 2001 From: DouPache Date: Tue, 31 Oct 2023 15:54:55 +0800 Subject: [PATCH 2/2] more clear example description --- test/e2e/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/e2e/README.md b/test/e2e/README.md index ed70a1f76..28ce1012b 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -65,9 +65,7 @@ $ ginkgo -r user_group_limit -v -- -yk-namespace "yunikorn" -kube-config "$HOME/ ``` * Launching specified test. -e.g. The first augument of ginkgo.It() - -ginkgo.It( "Verify_maxapplications_with_a_specific_group_limit" , ... ) +e.g. Run test with ginkgo.it() spec name "Verify_maxapplications_with_a_specific_group_limit" ```shell $ cd test/e2e/ $ ginkgo run -r -v --focus "Verify_maxapplications_with_a_specific_group_limit" \