Skip to content
MathWorks - Mobile View
  • MathWorks アカウントへのサインインMathWorks アカウントへのサインイン
  • Access your MathWorks Account
    • マイ アカウント
    • コミュニティのプロファイル
    • ライセンスを関連付ける
    • サインアウト
  • 製品
  • ソリューション
  • アカデミア
  • サポート
  • コミュニティ
  • イベント
  • MATLAB を入手する
MathWorks
  • 製品
  • ソリューション
  • アカデミア
  • サポート
  • コミュニティ
  • イベント
  • MATLAB を入手する
  • MathWorks アカウントへのサインインMathWorks アカウントへのサインイン
  • Access your MathWorks Account
    • マイ アカウント
    • コミュニティのプロファイル
    • ライセンスを関連付ける
    • サインアウト

ビデオ・Webセミナー

  • MathWorks
  • ビデオ
  • ビデオ ホーム
  • 検索
  • ビデオ ホーム
  • 検索
  • 営業へのお問い合わせ
  • 評価版
2:23 Video length is 2:23.
  • Description
  • Full Transcript
  • Related Resources

How to Analyze Coverage Using Test Case Traceability

Model coverage and code coverage measure testing completeness in your models and generated code. Learn how to use Simulink Test™ and Simulink Coverage™ to analyze missing coverage using test case traceability data in the coverage report.

Model coverage and code coverage measure how much of your Simulink models and generated code were exercised during simulation.

In this video, I’ll show you how to use Simulink Test and Simulink Coverage to analyze missing coverage using test case traceability data in the coverage report.

Here is a test suite I am managing using Simulink Test. This test suite contains requirements-based tests for a Cruise Control algorithm implemented using Stateflow. Each test case is linked to requirements managed in Requirements Toolbox.

After running the test suite, I can first view the overall coverage results in the Test Manager. For more details, I can generate a Coverage Report to see which parts of the design were exercised during simulation. I can also see which tests achieved a given coverage objective.

Let’s look at the coverage for the “ON” state.

This section of the coverage report shows the coverage objectives associated with the “ON” state, as well as which test case initially achieved each coverage objective. 

There is an uncovered objective for the “Accel” substate. We can see in the table that the “Accel” substate was partially exercised by test case T3. A simple next step is to look at test case T3 by clicking on the hyperlink in the table to see how we could supplement that test case to completely cover the “Accel” substate

Once I have finished testing my model, I can run tests on the generated code by simulating the model in Software-in-the-Loop mode. I can use the same approach I used while testing the model by looking at the test case traceability data in the coverage report.


This example showed how to use test case traceability data in the coverage report to understand how to fully exercise your Simulink models and generated code.

Click on the link below to try the example.

For more information, please visit the Simulink Coverage product page on mathworks.com

Related Products

  • Simulink Coverage
  • Simulink Test

Learn More

Trace Coverage Results to Associated Test Cases

3 Ways to Speed Up Model Predictive Controllers

Read white paper

A Practical Guide to Deep Learning: From Data to Deployment

Read ebook

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper

Deep Learning and Traditional Machine Learning: Choosing the Right Approach

Read ebook

Hardware-in-the-Loop Testing for Power Electronics Control Design

Read white paper

Predictive Maintenance with MATLAB

Read ebook

Electric Vehicle Modeling and Simulation - Architecture to Deployment : Webinar Series

Register for Free

How much do you know about power conversion control?

Start quiz
Related Information
Related Information
Try the example

Feedback

Featured Product

Simulink Coverage

  • Request Trial
  • Get Pricing

Up Next:

1:41
What Is Simulink Test?

Related Videos:

24:01
Best Practices and Lessons Learned During Test Case...
2:42
Extend Existing Test Cases to Achieve Full Model Coverage
34:37
Collect and Analyze Data Using MATLAB and Raspberry Pi
36:23
Using MATLAB and Symbolic Math Toolbox to Develop and...

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • Switzerland (English)
  • Switzerland (Deutsch)
  • Switzerland (Français)
  • 中国 (简体中文)
  • 中国 (English)

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • 営業へのお問い合わせ
  • 評価版

MathWorks

Accelerating the pace of engineering and science

MathWorksはエンジニアや研究者向け数値解析ソフトウェアのリーディングカンパニーです。

ディスカバー…

製品を見る

  • MATLAB
  • Simulink
  • 学生向けソフトウェア
  • ハードウェア サポート
  • File Exchange

製品評価版の入手または製品の購入

  • ダウンロード
  • 評価版ソフトウェア
  • 営業へのお問い合わせ
  • 価格とライセンス
  • MathWorksストア

使い方を学ぶ

  • ドキュメンテーション
  • チュートリアル
  • 例
  • ビデオ・Webセミナー
  • トレーニング

サポートを受ける

  • インストールのヘルプ
  • MATLAB Answers
  • 技術コンサルティング
  • ライセンスセンター
  • サポートへのお問い合わせ

MathWorks について

  • 採用情報
  • ニュースルーム
  • 社会貢献
  • ユーザー事例
  • MathWorks について
  • Select a Web Site United States
  • トラストセンター
  • 商標
  • プライバシー ポリシー
  • 違法コピー防止
  • アプリケーション ステータス

© 1994-2022 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

MATLAB を語ろう