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

4 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Rong Mi
Rong Mi am 16 Feb. 2018
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 Kommentar
Abhishek Kumar
Abhishek Kumar am 20 Feb. 2018
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Results, Reporting, and Test File Management finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by