Update Projects in Polyspace Platform User Interface
You can keep a Polyspace Platform project in sync with your source code repository throughout software development. In some cases, the project is updated automatically based on changes to your source code, while in other cases, you might have to perform some additional actions to keep the project updated. This topic lists some actions you can do to keep your project in sync with the latest sources.
Update Sources
When creating a Polyspace® Platform project, you can manually add source files or add them automatically by tracing your build command. Depending on how you created the project initially, you have to follow different steps for updating the project. For more information on project creation, see Create Project and Add Source Files in Polyspace Platform User Interface.
Update Sources in Manually Created Project
If you added source folders manually to a project, each time you add new files to those folders, the project can be refreshed to show the newly added files.
The refresh happens automatically when you reopen the project Polyspace Platform user interface or add more folders to the project. You can also explicitly refresh the project:
Select the project on the Projects pane.
On the Polyspace Platform toolstrip, select the
button.
Update Sources in Project Created from Build Command
If you created a project automatically from your build command, you have to retrace your build command to sync the project with the latest sources:
On the Projects pane, right-click the root node of the project and select Update Using Build Command.
Alternatively, with the project selected, you can select the
button on the Polyspace Platform toolstrip.In the Update project window, you see the build information that was originally entered to create the project. Click Run to recreate the project from your current build information.
When you update a project created from a build command, the certain configuration options are erased and re-entered in the project. See Information Gathered From Build Systems for Polyspace Analysis and Testing.
Update Tests
This section applies to only to users authoring graphical tests using Polyspace Test™.
When you update existing functions or data types in your source code, you can automatically update an existing graphical test to use the revised function prototype or type definitions. Any existing test information that is still applicable is retained during the update.
You can change a function signature in various ways including the following:
Renaming the function.
Adding or removing a parameter from the function.
Renaming a function parameter.
Reordering the existing function parameters.
Changing the data type of a function parameter.
In all of these cases, you have to update tests that call this function as code under test. Most of the changes, other than the function parameter renaming, cause a build failure. Even in case of a function parameter renaming, it is beneficial to update the test to show the new parameter names.
For more information on how to update a graphical test, see Update Tests in Polyspace Platform User Interface (Polyspace Test).