Main Content

Test Execution in Polyspace Platform User Interface

Configure project, build tests, check tests for run-time errors, run tests

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

expand all

Source code language (-lang)Specify language of source files
C standard version (-c-version)Specify C language standard followed in source code
C++ standard version (-cpp-version)Specify C++ language standard followed in source code
Compilation toolchain (Testing)Specify the compiler that you use to build your source code and tests for dynamic testing
Preprocessor definitions (-D)Replace macros in preprocessed code
Disabled preprocessor definitions (-U)Undefine macros in preprocessed code
Implicit C(C++) compiler definesView implicit compiler defines extracted from your build command (Since R2024b)
Extra C flagsSpecify C compilation flags required for building project (Since R2023b)
Extra C++ flagsSpecify C++ compilation flags required for building project (Since R2023b)
Include paths (-I)Specify paths to folders containing include files
Additional include paths (-I)Specify build-specific include paths in addition to project-wide include paths (Since R2024a)
Implicit C(C++) compiler include pathsView implicit compiler include paths extracted from your build command (Since R2024b)
Forced includes (-include)Specify files to be #include-d by every source file. (Since R2023b)
Library pathsSpecify folders containing precompiled libraries for building tests (Since R2023b)
LibrariesSpecify precompiled libraries for building tests (Since R2023b)
Extra flags for linkingSpecify linker flags required for building project (Since R2023b)
ProcessorSelect the processor for the current build configuration
Enable portable word sizesAllow compilation of code on host computer while retaining word sizes of target processor on which code is intended to run (Since R2023b)
Pack alignment value (-pack-alignment-value)Specify default structure packing alignment for code developed in Visual C++
Check undefined symbolsSpecify whether to check for undefined symbols (Since R2023b)
External symbolsSpecify symbol names that are not defined in code (Since R2023b)
Artifacts directorySpecify folder for storing project artifacts such as generated test code and build information (Since R2025a)

Tools

Polyspace Platform SettingsSettings for Polyspace Platform user interface (Since R2023b)
ToolchainCreate, validate, and register a custom toolchain for building C/C++ sources and tests

Topics

Configure Projects

Validate, Build and Run Tests

Open Test 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.