How can I integrate the MATLAB testing framework with Team Foundation Server
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Andy Campbell
el 29 de Mayo de 2014
Editada: Andy Campbell
el 3 de Jun. de 2014
*** 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 comentarios
Andy Campbell
el 4 de Jun. de 2014
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
el 4 de Sept. de 2015
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 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!