How can I integrate the MATLAB testing framework with Team Foundation Server
조회 수: 2 (최근 30일)
이전 댓글 표시
We are attempting to introduce continuous integration into our MATLAB environment now that there is a full test suite of testing capabilities. Unfortunately, we are committed to using TFS as our CI tool. Using the TAPPlugin (or otherwise), is it possible to integrate with TFS such that builds automatically run the unit tests and fail the build if any test fails?
댓글 수: 0
답변 (2개)
Andy Campbell
2014년 5월 29일
편집: Andy Campbell
2014년 6월 3일
*** UPDATE ***
Another possibility you can try is setting up your own Jenkins Server (at least for simple cases this is not that hard). Then you can add the TFS plugin into your Jenkins server so that it polls TFS and runs your tests when the files change in TFS. The benefit here is that you can still automatically run all of your tests and be notified when they fail. The downside is that you have to work between these two systems.
*** END UPDATE ***
Hi Greg,
I am not sure if there exists a TFS plugin anywhere that enables TFS to read the TAP protocol.
This project looks promising, but it would require some development effort if it works. This project could potentially consume TestResults natively? Perhaps a plugin for the test framework could be written that uses the MATLAB .NET interface to talk to an assembly that implements these interfaces? Not sure whether that would work or not but maybe its a start.
I am definitely interested in whether this can be done so please let me know anything you find out.
-Andy
댓글 수: 2
Andy Campbell
2014년 6월 4일
Thanks for sharing the info. Note that if you are doing your own analysis on the data you could also just reference the MATLAB TestResult properties. In other words, there may not be a need to actually write your own TAP Parser if you do not wish to. That being said, if you did invest in a TAP parser that could potentially allow other test frameworks to integrate into your CI system as well. Good luck and keep me posted. You've triggered and interest in TFS integration in myself so I will also continue to look for better solutions.
-Andy
Swati Tiwari
2015년 9월 4일
In R2015b, MATLAB has included a plugin for the matlab.unittest.TestRunner which produces test results in the JUnit-style XML format which can be integrated into continuous integration systems like Jenkins, Team Foundation Server and so on.
Hope that helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Testing Frameworks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!