Functions Not Considered Testable in Parameter Tree when a Class is Implemented Across Multiple Units

Issue:
I have two units, BAR.cpp and FOO.cpp. If I do not have a class defined in BAR.cpp but a function from a class defined in FOO.cpp is referenced in BAR.cpp, the rest of the functions from FOO.cpp are not reflected in the VectorCAST environment. This occurs when both units are set as units under test.
Solution:

In VectorCAST, when a class is implemented across multiple units that are simultaneously under test, only the first UUT will have testable functions. There are two approaches to getting past this problem:
 

  1. The first approach is to test each unit independently.
  2. The second approach is to create a new source file that #includes both BAR.cpp and FOO.cpp. This new source file would need to be the only unit set as the unit under test.
     


Article ID: 1487
Last updated: 2019-10-30
Revision: 1
VectorCAST -> Troubleshooting -> Functions Not Considered Testable in Parameter Tree when a Class is Implemented Across Multiple Units
https://kb.vector.com/entry/1487/