Files
wuhailong a76191a9d1 Modify the '-m' parameter
Signed-off-by: wuhailong <wuhailong19@huawei.com>
Change-Id: I613d28615686e6590d75931ddcecbf4456c71c1e
2022-05-18 15:05:49 +08:00
..
2022-03-09 20:58:11 +08:00
2022-03-23 17:28:51 +08:00
2022-05-18 15:05:49 +08:00
2022-03-23 11:42:25 +08:00
2022-03-23 11:42:25 +08:00
2022-05-18 15:05:49 +08:00
2022-01-17 15:12:44 +08:00
2022-03-23 16:22:13 +08:00

testTs

File info

  1. skip_tests.json:avoids code files and does not perform operations on TS files stored in the file.
  2. import_tests.json:Is the path to the TS code file where import files are stored to add import files.

Environment to prepare

  1. 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.
  2. 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
  3. After setting up the environment, enter the ark/ts2abc directory of Hongmeng system

Execute test framework

  1. Execute options
    1.1 Performing a Full Test
    python3 ./testTs/run_testTs.py
    1.2 Performing directory Tests
    python3 ./testTs/run_testTs.py --dir File directory, for example./testTs/test/ambient
    1.3 Performing a Single file Test
    python3 ./testTs/run_testTs.py --file File path, for example (./testTs/test/ambient/1.ts