Documentation

Simulink Coverage

Measure test coverage in models and generated code

金宝app®Coverage™performs model and code coverage analysis that measures testing completeness in models and generated code. It applies industry-standard metrics such as decision, condition, modified condition/decision coverage (MCDC), and relational boundary coverage to assess the effectiveness of simulation testing in models, software-in-the-loop (SIL), and processor-in-the-loop (PIL). You can use missing coverage data to find gaps in testing, missing requirements, or unintended functionality.

Simulink Coverageproduces interactive reports showing how much of your model, C /C++ S-functions, MATLAB®functions, and code generated by Embedded Coder®has been exercised. You can highlight coverage results in blocks and subsystems to visualize gaps in testing. To assess testing completeness, you can accumulate coverage data from multiple test runs. You can apply filters to exclude blocks from coverage and justify missing coverage in reports.

Support for industry standards is available through做资格工具包andIEC Certification Kit.

开始

Learn the basics of Simulink Coverage

Collect Coverage Data

Measure model and code coverage to indicate untested elements of your design

Evaluate Coverage Results

生成湾rage reports, view coverage highlighting in model, filter coverage collection results

Automate Coverage Workflows

Customize and automate model coverage collection

Verification and Validation

Use Simulink products to test models and code, check for design errors, check against standards, measure coverage, and validate the system

Tool Qualification and Certification

QualifySimulink Coveragefor DO and IEC certification