导入外部 C/C++ 测试
导入使用 GoogleTest 或其他外部测试编写框架编写的 C/C++ 测试
您可以将使用 GoogleTest 或其他外部测试编写框架编写的测试导入 Polyspace 平台工程中。导入外部测试使您可以:
编译这些现有测试以及您添加到工程中的任何新测试(图形化测试或使用 Polyspace® Test™ xUnit API 编写的测试)。
运行这些测试并在 Polyspace 平台用户界面中审查测试结果,就像对使用 Polyspace Test 编写的测试进行这些操作一样。
Polyspace 选项
主题
GoogleTest
- Run GoogleTest Tests Using Polyspace Platform Projects
Run GoogleTest tests and calculate code coverage. - Run GoogleTest Tests Using Polyspace Test CMake Package
Use Polyspace Test CMake package to manage test execution and profiling workflows for GoogleTest tests. - Convert GoogleTest Tests to Polyspace Test xUnit Tests
Convert tests authored using GoogleTest to tests using the Polyspace Test xUnit API.
通用外部测试
- Run External C/C++ Tests in Polyspace Platform User Interface
Run tests written using an external testing framework, review test results, and calculate code coverage.
疑难解答
Troubleshoot Building GoogleTest Tests from Polyspace Platform Projects
Troubleshoot build errors when building GoogleTest tests in a Polyspace Platform project.