Main Content

Testing on Targets Using Self-Managed Builds

R2026b
Set up communication with target, build and run tests on target

If your tests are authored using the Polyspace® Test™ C/C++ xUnit API, you can build them using your cross-compiler, flash them to a target board, and retrieve test results over a serial or TCP/IP connection:

polyspace-test -monitor -com serial -port COM6 -baud 115200 -results-dir results -- flash_and_run.bat

The polyspace-test -monitor command handles result collection and conversion for review in the Polyspace Platform user interface.

System Commands

polyspace-code-profiler(System Command) Profile your source code for calculating C/C++ code coverage, code execution time, and memory use
polyspace-test -monitor(System Command) Monitor execution of C/C++ xUnit tests and retrieve test and code profiling results
polyspace-test -convert(System Command) Convert test or code profiling results to standard Polyspace Test format
polyspace-test -generate(System Command) Generate test registration function from a set of Polyspace Test C/C++ test files

Topics

Test Execution

Code Profiling

Release-Specific Changes