|
|
| File Information |
| Description |
This provides JUnit-style XML logging for the MATLAB xunit framework developed by Steve Eddin (http://www.mathworks.com/matlabcentral/fileexchange/22846). The code was developed with version 3.0.1 and supports xunit-style and m-file-style tests. We use this in conjunction with Hudson/Jenkins to track test results.
Below is a code sample illustrating use of the extension. See example.m for details.
%add source code to path
addpath('src');
addpath(<path to xunit>);
%import classses, functions
import edu.stanford.covert.test.runtests;
import edu.stanford.covert.test.XMLTestRunDisplay;
%run and log tests
monitor = XMLTestRunDisplay(<Name>, <description>, <output file name>);
runtests(monitor, <tests>) |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
MATLAB xUnit Test Framework
|
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.11 (2010b)
|
| Other requirements |
Requires MATLAB >= 2008a. Also requires
- subversion added to the system path to collection revision information
- java in order to collect computer meta data |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 05 Dec 2011 |
Including missing code |
| 07 Dec 2011 |
Adding support for m-file-style tests following John Grogan's comments. |
|
Contact us at files@mathworks.com