-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update e2e-guide.md #78
Conversation
Signed-off-by: noobwei <[email protected]>
✅ Deploy Preview for kmesh-net ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: noobwei <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
defer to @YaoZengzeng |
@@ -46,6 +46,16 @@ When testing locally, you may want to skip some setup steps to save time, especi | |||
- `--skip-setup`: Skips deploying the Kubernetes cluster, Istio, and Kmesh. | |||
- `--only-run-tests`: Skips all other steps and focuses only on deploying test applications and running E2E tests. | |||
|
|||
You might need different kinds of tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List all flags first and then explain them in the following example.
@@ -46,6 +46,16 @@ When testing locally, you may want to skip some setup steps to save time, especi | |||
- `--skip-setup`: Skips deploying the Kubernetes cluster, Istio, and Kmesh. | |||
- `--only-run-tests`: Skips all other steps and focuses only on deploying test applications and running E2E tests. | |||
|
|||
You might need different kinds of tests. | |||
- `--cluster`: Allows specifying a pre-existing KinD cluster by name. | |||
- `--ipv6`: Enables creating a KinD cluster with IPv6 networking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `--ipv6`: Enables creating a KinD cluster with IPv6 networking. | |
- `--ipv6`: Enables creating a KinD cluster with IPv6 networking and run E2E tests on it. |
```bash | ||
./test/e2e/run_test.sh --cluster <KinD-Cluster-Name> | ||
``` | ||
- Cleanup the KinD Cluster or Docker Registry After Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Cleanup the KinD Cluster or Docker Registry After Tests | |
- Cleanup the KinD Cluster and Docker Registry After Tests |
- Selecting Specific Test Cases: | ||
|
||
```bash | ||
./test/e2e/run_test.sh --select-cases TestSpecificCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./test/e2e/run_test.sh --select-cases TestSpecificCase | |
./test/e2e/run_test.sh --only-run-tests -run "TestServices" |
--select-cases
has been deleted, use go test
flag directly.
|
||
```bash | ||
./test/e2e/run_test.sh --cleanup | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add cases about ipv6 and skip-cleanup-apps
./test/e2e/run_test.sh --select-cases TestSpecificCase | ||
``` | ||
|
||
- Controlling Test Verbosity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example is tedious, maybe could add an example that show how to repeat test cases multiple times.
Signed-off-by: noobwei <[email protected]>
/lgtm |
No description provided.