mirror of
https://github.com/openharmony/ark_ts2abc.git
synced 2026-07-21 08:25:24 -04:00
a76191a9d1
Signed-off-by: wuhailong <wuhailong19@huawei.com> Change-Id: I613d28615686e6590d75931ddcecbf4456c71c1e
testTs
File info
- skip_tests.json:avoids code files and does not perform operations on TS files stored in the file.
- import_tests.json:Is the path to the TS code file where import files are stored to add import files.
Environment to prepare
- 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.
- 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
- After setting up the environment, enter the ark/ts2abc directory of Hongmeng system
Execute test framework
- 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)