Build and Test Automation
R2026bBuild and run tests using a previously prepared Polyspace® Platform project
Prepare a Polyspace Platform project in the user interface, then build and run tests programmatically:
polyspace-test -build myproject.psprjx -results-dir results
polyspace-test -run myproject.psprjx -results-dir resultsFor CI server workflows, see Build and Test Automation on Servers.
System Commands
Topics
Source Control of Polyspace Platform Projects
- Create Easily Shareable Projects for Version Control
Create projects that are easy to share and submit to version control by using relative paths, variables, and a modular project structure. - Compare and Merge Polyspace Platform Projects and Configurations Before Submission to Source Control
Compare Polyspace Platform projects (.psprjxfiles) with version in repository, and resolve conflicts in sources, configurations, or tests in project.
Build and Test Automation
- Automate C/C++ Test Execution Using Polyspace Platform Projects
Build and run C/C++ tests in a project on a continuous integration (CI) server, upload results to Polyspace Access™ web server. - Automate C/C++ Code Profiling Using Polyspace Platform Projects
Calculate metrics such as code coverage, execution time, and memory use on a continuous integration (CI) server.
Testing on Targets
- Automate C/C++ Test Execution on Targets Using Polyspace Platform Projects
Build and run tests on a custom target board programmatically using the command line interface, for instance, on a continuous integration server. - Automate C/C++ Code Profiling on Targets Using Polyspace Platform Projects
Calculate metrics such as code coverage or execution time on a custom target board using the command line interface.