How to Save Test Suite

SixDegreesSixDegrees Posts: 2

We're trying to save a Linux test suite (using git) so we can share it among developers. The existing suite contains several hidden files (.parasoft, .cproject, .project, .metadata) that contain absolute paths to the original suite locations, which breaks badly when we try to reuse the project elsewhere.

How can we save our test suite code and reuse it on different machines?


  • MichaelCMichaelC Posts: 28 admin

    Hello @SixDegrees,

    You can save your test suites to any locations and still be able to run unit tests. However, some configuration is necessary to be able to Run Unit Tests. This can be done by following the steps below.

    1. Go to Parasoft -> Test Configurations -> Builtin -> Run Unit Tests
    2. Right-Click on the Test Configuration and select Duplicate. This will create a copy of the Test Configuration in the User-Defined Folder above.
    3. Navigate to the User-Defined Folder and click on your new User-Defined Run Unit Tests test configurations.
    4. Navigate to the Execution Tab on the right of the screen.
    5. Go to the Unit Testing Settings section and look for the Test suite file search patterns (*): parameter.
    6. Change the default parameter of "${project_loc}/test/" to match the location of your new test suite. I would recommend pointing to a parent directory followed by a / to ensure all future test-suites that are saved to that location can be used

    Below is a screenshot that will help you navigate to this page. Please let me know if you have any other questions regarding C++test.

Sign In or Register to comment.