The test cases that include fault injection in the target function display the following warning dialog during the execution of [Debug in VS Code]

The test cases with fault injection for the target function can be debugged using the [Debug in VS Code] feature, including the fault injection code. However, the fault injection code cannot be directly debugged in [VS Code]. The method for verifying the impact of fault injection inserted into the target function on execution behavior is as follows.

Verifying the impact of fault injection inserted into the target function on execution behavior

  1. In the fault injection view, check the locations where fault injection is inserted and the inserted code.
  1. Right-click on the test case for the function with fault injection inserted, and select [Debug in VS Code].
  1. After the dialog box is displayed, verify the content and click the [OK] button.
  1. Utilize the debugging feature in [VS Code] to navigate to the location of the code with fault injection inserted.
  1. Press [F10] and verify the insertion of the fault injection code and its impact on the execution behavior.
    • In the image below, after pressing the [F10] button, it can be confirmed that the fault injection code has been inserted, changing the value of variable a to 1.

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.