Polyspace Test

 

Polyspace Test

为嵌入式系统中的 C/C++ 代码开发测试并分析结构覆盖率

视频长度为 5:23
使用图形编辑器添加测试参数。

开发和执行单元测试与集成测试

您可以使用 Polyspace Test xUnit API 为 C/C++ 代码开发并运行测试,也可以通过图形化测试编写编辑器以交互方式进行操作。创建桩函数和模拟件以隔离待测组件,并集成 gMock 等第三方 mocking 库。

表格:显示可达和不可达代码以及源代码的代码覆盖率结果。

测量代码覆盖率以及分析执行

针对决策覆盖率、条件覆盖率和 MC/DC 等行业标准度量,生成并查看代码覆盖率结果。使用代码执行分析运行测试,以确定需要改进内存和运行时性能的代码节。

用于将测试链接到软件需求的对话框。

将测试与软件需求链接起来

在用户界面中将 C/C++ 测试与外部编辑器或工具(例如 IBM® DOORS®、IBM DOORS Next、Microsoft® Word 或 Microsoft Excel®)中编写的测试需求进行关联。

使用硬件支持包将生成的代码部署到嵌入式设备。

在主机和目标硬件上运行测试

在主机和目标硬件上执行测试、收集代码覆盖率度量,并分析内存使用情况和运行时性能。

对话框:显示生成覆盖率或边界值测试的选项。

生成测试以满足覆盖率和边界值目标

自动生成测试以补充手动创建的测试用例,并满足代码覆盖率和边界值测试要求。

标有 ISO 26262、DO-178、EC 61508、IEC 62304、ISO 25119、EN 50128 和 EN 50657 的彩色形状。

符合认证标准

创建完成行业标准认证过程所需的交付物。Polyspace Test 已通过 TÜV 南德认证,可用于 IEC 61508 和 ISO 26262 标准。将报告和交付物用于 DO-178C 流程。

开发运营一体化的循环工作流图:显示通过持续集成和持续交付与运营活动(部署、运营、监控)链接在一起的开发活动(规划、设计、编译、测试)。

实现自动化并集成到 DevOps 工作流

将 Polyspace Test 集成到现有的 DevOps 工作流和自动化流程中,支持现代软件开发实践。Polyspace Test 支持常见的持续集成工具,包括 Jenkins 和 Bamboo®。

Polyspace 平台中的静态和动态分析结果。

统一静态分析和动态测试 

在统一的界面中管理静态分析(通过 Polyspace Bug Finder 或 Polyspace Code Prover)和测试(通过 Polyspace Test),包括项目配置、执行和审查。使用代码分析工作流来识别有问题的测试、说明不可达代码分支的合理性,或满足复杂的代码覆盖率要求。

显示运行时错误分析结果的用户界面。

使用清理器生成运行时错误分析

在启用代码清理器后运行测试以检测运行时错误。以测试失败的形式查看结果,或在清理器分析报告中查看结果。

Polyspace 产品系列

Polyspace 产品通过在整个开发生命周期中测试和监控软件质量来保证关键代码的安全。

Polyspace Access

识别编码缺陷,查看静态分析结果,并监控软件质量指标。

Polyspace Copilot

专为 Polyspace 优化的 AI 助手。

Polyspace Test

开发、管理和执行嵌入式系统中 C 和 C++ 代码的测试。

Polyspace as You Code

在您的 IDE 中识别编码标准违规和软件漏洞。

Polyspace Bug Finder

检查编码规则、安全标准和代码指标并找出 Bug。

Polyspace Code Prover Server

在 CI 管道中持续并详尽地验证关键的 C 和 C++ 代码语句。  

Polyspace Bug Finder Server

在 CI 管道中识别软件缺陷并贯彻编码规则。

Polyspace Client for Ada

使用形式化方法详尽验证关键的 Ada 语句单元。

Polyspace Code Prover

使用形式化方法详尽验证最关键的 C 和 C++ 语句。

Polyspace Server for Ada

持续并详尽地验证 CI 管道中的关键 Ada 代码语句。

Polyspace Code Prover

Exhaustively verify the most critical C and C++ statements using formal methods.

Polyspace Test FAQs

Polyspace Test provides tools for developing, managing, and executing unit and integration tests and analyzing structural coverage for C and C++ code in embedded systems.

Polyspace Test supports C and C++ code in embedded systems.

You can create tests using the Polyspace xUnit API or interactively using a graphical test authoring editor, and create stubs and mocks to isolate components under test.

Yes, Polyspace Test lets you execute tests, collect code coverage metrics, and profile memory and execution on both host computers and target hardware.

Polyspace Test provides industry standard code coverage metrics including decision, condition, and modified condition/decision coverage (MC/DC).

Yes, Polyspace Test can automatically generate tests to augment manually created test cases, achieve desired code coverage, test boundary values, and extend requirements-based test cases.

Yes, you can link C and C++ tests to requirements authored in external tools such as IBM DOORS, IBM DOORS Next, Microsoft Word, or Microsoft Excel for traceability.

Yes, Polyspace Test has been certified by TÜV SÜD for use with IEC 61508 and ISO 26262 standards, and provides reports and artifacts for DO-178C processes through certification kits.

Yes, Polyspace Test works with popular continuous integration tools including Jenkins and Bamboo to support modern DevOps workflows and automated processes. Polyspace Test also includes a complete Python API that helps developers integrate with existing CI/CD infrastructure.

Polyspace Test includes a common user interface that enables you to configure, run, and review results from Polyspace Bug Finder and Polyspace Code Prover, and use static analysis results to justify missing code coverage, generate tests, and instrument for dynamic run-time error and memory checking.