• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Hi3516DV300 --build-target ark_ts2abc' command.
92. Go to the tool build directory 'cd out/hi3516DV300/clang_x64/ark/ark/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