필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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 CenterFile Exchange에서 Results, 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