13af6ab5fSopenharmony_ci# testTs 23af6ab5fSopenharmony_ci 33af6ab5fSopenharmony_ci### File info 43af6ab5fSopenharmony_ci1. skip_tests.json:avoids code files and does not perform operations on TS files stored in the file. 53af6ab5fSopenharmony_ci2. import_tests.json:Is the path to the TS code file where import files are stored to add import files. 63af6ab5fSopenharmony_ci 73af6ab5fSopenharmony_ci### Environment to prepare 83af6ab5fSopenharmony_ci1. 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. 93af6ab5fSopenharmony_ci2. 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 103af6ab5fSopenharmony_ci3. After setting up the environment, enter the ark/ts2abc directory of Hongmeng system 113af6ab5fSopenharmony_ci 123af6ab5fSopenharmony_ci### Execute test framework 133af6ab5fSopenharmony_ci1. Execute options <br> 143af6ab5fSopenharmony_ci1.1 Performing a Full Test <br> 153af6ab5fSopenharmony_cipython3 ./testTs/run_testTs.py <br> 163af6ab5fSopenharmony_ci1.2 Performing directory Tests <br> 173af6ab5fSopenharmony_cipython3 ./testTs/run_testTs.py --dir File directory, for example(./testTs/test/ambient)<br> 183af6ab5fSopenharmony_ci1.3 Performing a Single file Test<br> 193af6ab5fSopenharmony_cipython3 ./testTs/run_testTs.py --file File path, for example (./testTs/test/ambient/1.ts)<br> 20