xiaoyuyao commented on a change in pull request #794: HDDS-2804. 
tools/TestTools.md
URL: https://github.com/apache/hadoop-ozone/pull/794#discussion_r410482425
 
 

 ##########
 File path: hadoop-hdds/docs/content/tools/TestTools.zh.md
 ##########
 @@ -0,0 +1,229 @@
+---
+title: "测试工具"
+summary: Ozone 提供了负载生成、分片测试、验收测试等多种测试工具。
+---
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+测试是开发分布式系统中最重要的部分,我们提供了以下类型的测试。
+
+本页面给出了 Ozone 自身的测试工具。
+
+注意:我们还进行了其它测试(比如通过 Spark 或 Hive 进行的 TCP-DS、TCP-H),但因为它们是外部工具,所以没有在此列出。
+
+## 单元测试
+
+和每个 java 项目一样,我们的每个项目都包含传统的单元测试。
+
+## 集成测试(JUnit)
+
+传统的单元测试只能测试一个单元,但我们也有更高层次的单元测试。它们使用 `MiniOzoneCluster` 
辅助方法在单元测试中启动守护进程(SCM、OM、数据节点)。
+
+从 maven 或 java 的角度来看,集成测试也只是普通的单元测试而已(使用了 JUnit 
库),但为了将它们分开(同时解决一些依赖问题),我们将集成测试移到了 `hadoop-ozone/integration-test` 目录下。
 
 Review comment:
   但为了解决一些依赖问题,我们将它们分开放在集成测试 `hadoop-ozone/integration-test` 目录下。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to