フィルターのクリア

Way to run all Test in a Test Harness from Jenkins and Publish Report

3 ビュー (過去 30 日間)
Abhishek Kumar
Abhishek Kumar 2018 年 2 月 16 日
コメント済み: Abhishek Kumar 2018 年 2 月 20 日
Dear All
I am trying to integrate Matlab/Simulink with Jenkins CI server. So currently, I can build my Simulink file automatically with every commit. The issue I face now is that, how do I run all the tests in a Simulink Test Harness. And if I run them, how do I publish the results on Jenkins. I looked into <https://blogs.mathworks.com/developer/2015/01/20/the-other-kind-of-continuous-integration/ Another kind of Integration > but I am not able to solve my issue with it. Just to be clear, my test harness is .slx file. I can simulate it (sim) but still how do I publish the result in Jenkins. Please provide a suggestion.

採用された回答

Rong Mi
Rong Mi 2018 年 2 月 16 日
Hi Abhishek,
Based on my understanding, you want to authorize tests for your design model. And in your tests, you want to use the Simulink Test Harnesses you created. After finish running the tests, you want to integrate the results into Jenkins.
If I understand your question correctly, please try the following steps:
  1. Use Simulink Test Test Manager to authorize all the tests which use Simulink Test Harnesses.
  2. Run the tests from step 1 using MATLAB Unit Test framework.
  3. Integrate MATLAB® Unit Test results into Jenkins.
  • Here is the introduction for Test Manager (Step1): https://www.mathworks.com/help/sltest/ug/introduction-to-the-test-manager.html
  • Here is an example for Step2 and Step3:https://www.mathworks.com/help/sltest/ug/run-test-files-using-matlab-unit-test.html
Thank you. Rong
  1 件のコメント
Abhishek Kumar
Abhishek Kumar 2018 年 2 月 20 日
Thank you, it was very helpful. I would like to add an additional link here. https://blogs.mathworks.com/developer/2015/01/29/tap-plugin/?s_tid=Blog_Developer_Category. This is a also a very helpful link.

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

その他の回答 (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