フィルターのクリア

Coverage aggregating multiple test harnesses

1 回表示 (過去 30 日間)
Seungkyu Park
Seungkyu Park 2017 年 3 月 24 日
編集済み: Arjun 2024 年 2 月 21 日
Hi, The model coverage can be calculated and reported as explained below.
My question arises in this case. I have two test harnesses; test_harness1, test_harness2. Each of them covers some parts of the same subsystem (harnesses are separated since it might be too big written in just one test harness). The coverages are 40%, and 60% for each, but should go up to over 80% when considering both harnesses. Is there any way for the coverage to aggregate two harness?
Thanks.
  2 件のコメント
Gabriel Beltrao
Gabriel Beltrao 2023 年 4 月 25 日
Hey Park,
Did you get any reply on that?
Arjun
Arjun 2024 年 2 月 21 日
編集済み: Arjun 2024 年 2 月 21 日
Hi,
I understand that you are trying to aggregate the test results from different test harness of the same model and want to generate the aggregated report.
To get the aggregated coverage collection, please follow the below steps:
1. configure test harnesses to automatically synchronize it to model on Open & Close by following the steps in https://www.mathworks.com/help/sltest/ug/sync-between-harness-and-model.html
2. Run the tests on the harnses model with coverage collection enabled. see info on coverage collection in https://www.mathworks.com/help/sltest/ug/collect-model-coverage-in-tests.html
3. Aggregate the results in the main model by loading the results manually using cvload command. for more info on cvload see https://www.mathworks.com/help/slcoverage/ref/cvload.html
There are certain condition on which we might not be able to aggregate the test results while working on harness due to consistency mismatch.
Regards,
Arjun

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeResults, Reporting, and Test File Management についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by