How to collect cumulative coverage for model and it's subsystem?

3 ビュー (過去 30 日間)
Oleksandr Denysenko
Oleksandr Denysenko 2020 年 11 月 19 日
コメント済み: Pat Canny 2020 年 11 月 23 日
I'm running separate test harnesses for model and it's subsystem. How can i combine coverage resuts?
P.S. I saw this page and it works only if hanesses made for the same model. In my case, there test harness fo model ans separate test harness for it's subsystem.

採用された回答

Pat Canny
Pat Canny 2020 年 11 月 19 日
We added a feature in R2019b to enable "aggregated" coverage for a model and its subsystems. Does this help? https://www.mathworks.com/help/releases/R2019b/slcoverage/ug/top-level-model-coverage-report.html#mw_16637a98-54d2-46e8-a156-a5d875cbb8b4
  2 件のコメント
Oleksandr Denysenko
Oleksandr Denysenko 2020 年 11 月 19 日
Hello
As i understood it helps to aggregate coverage from test harnesses for the same model, am i correct?
But i have one test harness for model and another one for subsystem in this model (link to subsystem in model). Is it possible to aggregate these cogerage?
Pat Canny
Pat Canny 2020 年 11 月 23 日
I should clarify that the feature we added in R2019b assumes the tests are organized using Simulink Test.
Coverage from test cases for a subsystem (which can be generated from a test harness) can be aggregated along with the coverage from the parent model (our documentation calls tests on the parent model "integration tests"). Here is a link to an example: https://www.mathworks.com/help/releases/R2019b/slcoverage/ug/trace-coverage-results-to-associated-test-cases.html
The goal with this feature is to enable users to see how much coverage they achieved at the unit (subsystem) and system level. Our customers use a variety of definitions for "unit", and we decided the best approach was to use a test case in Simulink Test as the mechanism to preserve hierarchy. You can create a test case from a test harness: https://www.mathworks.com/help/sltest/ug/generate-test-cases-from-model-components.html

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenerate Tests についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by