Overview
MindStudio IDE provides an upgraded UT solution based on the GTest framework, simplifying UT case development.
UT is one of the methods to verify a single-operator, which aims to:
- Test the correctness of operator code and verify consistency between the desired and actual inputs and outputs.
- Ensure that the operator program can run properly. The selected scenario combination must cover all branches of the operator code (generally, the coverage rate should reach 100%), reducing the rate of failing to compile operator code in different scenarios.
For details about definition of the test classes, see the Ascend-CANN-Toolkit installation directory/ascend-toolkit/latest/python/site-packages/op_test_frame/ut/op_ut.py file.
Parent topic: UT