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.
How to Save Test Suite
![SixDegrees](https://us.v-cdn.net/6029336/uploads/defaultavatar/nEGH2ZRDEI73I.jpg)
SixDegrees
Posts: 2 ✭
in C/C++test
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?
0
Comments
-
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.
- Go to Parasoft -> Test Configurations -> Builtin -> Run Unit Tests
- Right-Click on the Test Configuration and select Duplicate. This will create a copy of the Test Configuration in the User-Defined Folder above.
- Navigate to the User-Defined Folder and click on your new User-Defined Run Unit Tests test configurations.
- Navigate to the Execution Tab on the right of the screen.
- Go to the Unit Testing Settings section and look for the Test suite file search patterns (*): parameter.
- 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.
0