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 hispark_taurus_standard --build-target ark_ts2abc' command.
- 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
- 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)