• Home
Name Date Size #Lines LOC

..--

expect/07-Sep-2024-3,3652,994

instype/07-Sep-2024-172113

README.mdD07-Sep-20241.1 KiB2016

README_zh.mdD07-Sep-20241,020 2216

config.pyD07-Sep-20241.8 KiB5140

import_tests.jsonD07-Sep-20241.1 KiB1818

run_testTs.pyD07-Sep-202412.2 KiB351304

skip_tests.jsonD07-Sep-2024401.1 KiB5,0615,060

test-case.patchD07-Sep-2024474.1 KiB13,24513,118

utils.pyD07-Sep-20242.5 KiB10066

README.md

1# testTs
2
3### File info
41. skip_tests.json:avoids code files and does not perform operations on TS files stored in the file.
52. import_tests.json:Is the path to the TS code file where import files are stored to add import files.
6
7### Environment to prepare
81. Compile TS2ABC warehouse in hongmeng system code root directory. Delete the out directory and run the './build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc' command.
92. Go to the tool build directory 'cd out/hispark_taurus/clang_x64/arkcompiler/ets_frontend/build' in the out file and run the 'npm install' command to set up the environment
103. After setting up the environment, enter the ark/ts2abc directory of Hongmeng system
11
12### Execute test framework
131. Execute options  <br>
141.1 Performing a Full Test <br>
15python3 ./testTs/run_testTs.py  <br>
161.2 Performing directory Tests <br>
17python3 ./testTs/run_testTs.py --dir  File directory, for example(./testTs/test/ambient)<br>
181.3 Performing a Single file Test<br>
19python3 ./testTs/run_testTs.py --file  File path, for example (./testTs/test/ambient/1.ts)<br>
20

README_zh.md

1# testTs
2
3### 文件简介
41.skip_tests.json:进行代码文件的规避执行,能对文件中存放的ts文件进行不执行操作。<br>
52.import_tests.json:存放import的ts代码文件路径,对import类型文件进行添加。<br>
6
7### 环境准备
81.在鸿蒙系统代码根目录下编译ts2abc仓。先删除out目录,然后执行./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc命令进行编译。<br>
92.进入out文件中的工具build目录 cd out/hispark_taurus/clang_x64/arkcompiler/ets_frontend/build,使用npm install命令进行环境搭建<br>
103.搭建完环境,进入到鸿蒙系统ark/ts2abc目录下<br>
11
12
13### 执行测试框架
141.执行选项<br>
151.1 执行全量测试<br>
16python3 ./testTs/run_testTs.py  <br>
171.2 执行目录测试<br>
18python3 ./testTs/run_testTs.py --dir  文件目录,例如(./testTs/test/ambient)<br>
191.3 执行单个文件测试<br>
20python3 ./testTs/run_testTs.py --file  文件路径,例如(./testTs/test/ambient/1.ts)<br>
21
22