Accessing Private members of the class in CPP unit test

How to set the private variables which is defined in the different CPP file other than file under unit test using parasoft?


  • Kevin AliKevin Ali Posts: 22 admin


    Can you please expand on filing under unit test using parasoft.

  • The "CPP file" is the source file in project which contain the functions under unit test. The issue is that the functions under test will call the members of other class which in turn call other class members. Due to this we will have to include all the source files to solve the dependency. Is there any other way to solve this?

Sign In or Register to comment.