Test Execution in Polyspace Platform User Interface
You can build and run tests in a Polyspace Platform project, after setting appropriate options in your project.
If you encounter errors during the build, you can resolve them by using error messages in the build logs. You can also run a quick test validation before building your project.
If you encounter errors during test execution, you can run static analysis on your tests to make sure that your test data does not lead to run-time errors.
Polyspace Options
Tools
| Polyspace Platform Settings | Settings for Polyspace Platform user interface (Since R2023b) |
| Toolchain | Create, validate, and register a custom toolchain for building C/C++ sources and tests |
Topics
Configure Projects
- Configure Project for Testing in Polyspace Platform User Interface
Specify targets and build information to build and run tests. - Specify C/C++ Compilers for Testing in Polyspace Platform User Interface
Specify a supported compiler for initial code analysis and test building.
Validate, Build and Run Tests
- Build and Run Tests in Polyspace Platform User Interface
Validate tests, compile sources and tests into executables, run test executables. - Check for Bugs and Run-Time Errors in C/C++ Tests and Functions Under Test
Using Polyspace® Bug Finder™ or Polyspace Code Prover™, check for undefined behavior that might make test results suspect. - Difference Between Code Prover Analysis of Tests and Full Code Prover Analysis
A Code Prover analysis of tests analyzes the function under test only with respect to test inputs.
Open Test Results
- Open Polyspace Results in Polyspace Platform User Interface
See all the ways you can open Polyspace results.
Troubleshooting
Fix Project Build Errors in Polyspace Platform User Interface
Troubleshoot project build errors because of issues in source files or tests.
Fix Test Execution Failures in Polyspace Platform User Interface
Troubleshoot test execution failures.
Fix Multiple main Error in Polyspace Platform User Interface
Troubleshoot errors related to main function when building Polyspace Platform projects.
Fix Undefined Symbol Errors in Polyspace Platform User Interface
Troubleshoot errors related to undefined symbols when building Polyspace Platform projects.
Fix Build Errors from Non-C/C++ Files in Polyspace Platform User Interface
Troubleshoot errors related to non-C/C++ files when building Polyspace Platform projects.