未验证 提交 cc25fb1a 编写于 作者: O openharmony_ci 提交者: Gitee

!7778 修改格式问题---涉及翻译

Merge pull request !7778 from Austin/master
...@@ -143,18 +143,15 @@ XTS子系统当前包括acts与tools软件包: ...@@ -143,18 +143,15 @@ XTS子系统当前包括acts与tools软件包:
4. 使用宏定义LITE_TEST_CASE写测试用例 4. 使用宏定义LITE_TEST_CASE写测试用例
包括三个参数:测试套件名称,测试用例名称,用例属性(测试类型、用例粒度、用例级别)。 包括三个参数:测试套件名称,测试用例名称,用例属性(测试类型、用例粒度、用例级别)。
``` ```
LITE_TEST_CASE(IntTestSuite, TestCase001, Function | MediumTest | Level1) LITE_TEST_CASE(IntTestSuite, TestCase001, Function | MediumTest | Level1)
{ {
//do something //do something
}; };
``` ```
5. 使用宏定义 RUN_TEST_SUITE注册测试套件 5. 使用宏定义 RUN_TEST_SUITE注册测试套件
``` ```
RUN_TEST_SUITE(IntTestSuite); RUN_TEST_SUITE(IntTestSuite);
``` ```
...@@ -258,16 +255,16 @@ XTS子系统当前包括acts与tools软件包: ...@@ -258,16 +255,16 @@ XTS子系统当前包括acts与tools软件包:
// Test suite cleanup action, which is executed after the last test case // Test suite cleanup action, which is executed after the last test case
static void TearDownTestCase(void){ static void TearDownTestCase(void){
} }
// Preset action of the test case // Preset action of the test case
virtual void SetUp() virtual void SetUp()
{ {
} }
// Cleanup action of the test case // Cleanup action of the test case
virtual void TearDown() virtual void TearDown()
{ {
} }
}; };
``` ```
3. 使用宏定义HWTEST或HWTEST_F写测试用例 3. 使用宏定义HWTEST或HWTEST_F写测试用例
...@@ -288,8 +285,7 @@ XTS子系统当前包括acts与tools软件包: ...@@ -288,8 +285,7 @@ XTS子系统当前包括acts与tools软件包:
每个测试模块目录下新建BUILD.gn编译文件,用于指定编译后可执行文件的名称、依赖的头文件、依赖的库等;具体写法如下。每个测试模块将独立编译成.bin可执行文件, 该文件可直接push到单板上进行测试。 每个测试模块目录下新建BUILD.gn编译文件,用于指定编译后可执行文件的名称、依赖的头文件、依赖的库等;具体写法如下。每个测试模块将独立编译成.bin可执行文件, 该文件可直接push到单板上进行测试。
举例: 举例:
``` ```
import("//test/xts/tools/lite/build/suite_lite.gni") import("//test/xts/tools/lite/build/suite_lite.gni")
hcpptest_suite("ActsDemoTest") { hcpptest_suite("ActsDemoTest") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册