Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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?

Comments

  • Kevin Ali
    Kevin Ali Posts: 22 admin

    @srinath_karwal

    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?