Functions Not Considered Testable in Parameter Tree when a Class is Implemented Across Multiple Units
I have two units, BAR.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.
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:
- The first approach is to test each unit independently.
- 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
VectorCAST -> Troubleshooting -> Functions Not Considered Testable in Parameter Tree when a Class is Implemented Across Multiple Units