Replacing Stubs

Component Testing for C

Stubs can be used to replace a component that is still in development. Later in the development process, you might want to replaced a stubbed component with the actual source code.

To replace a stub with actual source code:

  1. Right-click the test node and select Add Child and Files

  2. Add the source code files that will replace the Stubbed functions.

  3. If you do not want a new file to be instrumented, right-click the file select Properties. Set the Instrumentation property to No.

  4. Open the .ptu test script, and remove the STUB sections from your script file.