This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new d0c471596db Fix e2e test compilation documentation (#24318)
d0c471596db is described below
commit d0c471596db3731c3064148d504621ec094ac8ee
Author: ZhangCheng <[email protected]>
AuthorDate: Thu Feb 23 18:07:06 2023 +0800
Fix e2e test compilation documentation (#24318)
---
docs/document/content/test-manual/integration-test/_index.cn.md | 8 ++++----
docs/document/content/test-manual/integration-test/_index.en.md | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/docs/document/content/test-manual/integration-test/_index.cn.md
b/docs/document/content/test-manual/integration-test/_index.cn.md
index 5972c265b85..a336a7d38d7 100644
--- a/docs/document/content/test-manual/integration-test/_index.cn.md
+++ b/docs/document/content/test-manual/integration-test/_index.cn.md
@@ -49,7 +49,7 @@ weight = 1
## 使用指南
-模块路径:`shardingsphere-test/shardingsphere-test-e2e/shardingsphere-test-e2e-test-suite`
+模块路径:`test/e2e/suite`
### 测试用例配置
@@ -112,7 +112,7 @@ SQL 用例在
`resources/cases/${SQL-TYPE}/${SQL-TYPE}-integration-test-cases.xm
- `proxy/conf/config-${SCENARIO-TYPE}.yaml`: 规则配置。
-**Docker 环境配置为 ShardingSphere-Proxy 提供了远程调试端口,可以在
`shardingsphere-test/shardingsphere-test-e2e/shardingsphere-test-e2e-fixture/src/test/assembly/bin/start.sh`
文件的 `JAVA_OPTS` 中找到第 2 个暴露的端口用于远程调试。**
+**Docker 环境配置为 ShardingSphere-Proxy 提供了远程调试端口,可以在
`test/e2e/fixture/src/test/assembly/bin/start.sh` 文件的 `JAVA_OPTS` 中找到第 2
个暴露的端口用于远程调试。**
### 运行测试引擎
@@ -156,14 +156,14 @@ it.cluster.databases=H2,MySQL,Oracle,SQLServer,PostgreSQL
#### 运行 Docker 模式
```bash
-./mvnw -B clean install -f shardingsphere-test/shardingsphere-test-e2e/pom.xml
-Pit.env.docker -Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
+./mvnw -B clean install -f test/e2e/pom.xml -Pit.env.docker
-Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
```
运行以上命令会构建出一个用于集成测试的 Docker 镜像 `apache/shardingsphere-proxy-test:latest`。
如果仅修改了测试代码,可以复用已有的测试镜像,无须重新构建。使用以下命令可以跳过镜像构建,直接运行集成测试:
```bash
-./mvnw -B clean install -f
shardingsphere-test/shardingsphere-test-e2e/shardingsphere-test-e2e-test-suite/pom.xml
-Pit.env.docker -Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
+./mvnw -B clean install -f test/e2e/suite/pom.xml -Pit.env.docker
-Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
```
#### 远程 debug Docker 容器中的 Proxy 代码
diff --git a/docs/document/content/test-manual/integration-test/_index.en.md
b/docs/document/content/test-manual/integration-test/_index.en.md
index 3029f2472cf..71b57b06a28 100644
--- a/docs/document/content/test-manual/integration-test/_index.en.md
+++ b/docs/document/content/test-manual/integration-test/_index.en.md
@@ -51,7 +51,7 @@ Therefore, one SQL will drive `Database type (5) * Access
port type (2) * SQL ex
## User Guide
-Module
path:`shardingsphere-test/shardingsphere-test-e2e/shardingsphere-test-e2e-test-suite`
+Module path:`test/e2e/suite`
### Test case configuration
@@ -157,13 +157,13 @@ it.cluster.databases=H2,MySQL,Oracle,SQLServer,PostgreSQL
#### Run Docker mode
```bash
-./mvnw -B clean install -f shardingsphere-test/shardingsphere-test-e2e/pom.xml
-Pit.env.docker -Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
+./mvnw -B clean install -f test/e2e/pom.xml -Pit.env.docker
-Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
```
Run the above command to build a Docker mirror
`apache/shardingsphere-proxy-test:latest` used for integration testing.
If you only modify the test code, you can reuse the existing test mirror
without rebuilding it. Skip the mirror building and run the integration testing
directly with the following command:
```bash
-./mvnw -B clean install -f
shardingsphere-test/shardingsphere-test-e2e/shardingsphere-test-e2e-test-suite/pom.xml
-Pit.env.docker -Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
+./mvnw -B clean install -f test/e2e/suite/pom.xml -Pit.env.docker
-Dit.cluster.adapters=proxy,jdbc
-Dit.scenarios=${scenario_name_1,scenario_name_2,scenario_name_n}
-Dit.cluster.databases=MySQL
```
#### Remote debug Proxy code in Docker container