Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
expect/ | 07-Sep-2024 | - | 3,365 | 2,994 | ||
instype/ | 07-Sep-2024 | - | 172 | 113 | ||
README.md | D | 07-Sep-2024 | 1.1 KiB | 20 | 16 | |
README_zh.md | D | 07-Sep-2024 | 1,020 | 22 | 16 | |
config.py | D | 07-Sep-2024 | 1.8 KiB | 51 | 40 | |
import_tests.json | D | 07-Sep-2024 | 1.1 KiB | 18 | 18 | |
run_testTs.py | D | 07-Sep-2024 | 12.2 KiB | 351 | 304 | |
skip_tests.json | D | 07-Sep-2024 | 401.1 KiB | 5,061 | 5,060 | |
test-case.patch | D | 07-Sep-2024 | 474.1 KiB | 13,245 | 13,118 | |
utils.py | D | 07-Sep-2024 | 2.5 KiB | 100 | 66 |
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