Coverage Report Generator
by Jonathan Karr
28 Nov 2011
(Updated 05 Dec 2011)
Generates Cobertura-style XML coverage report
|
Watch this File
|
| File Information |
| Description |
This packages uses the profiler to generate a Cobertura-style XML coverage report. We use this report in conjunction with Hudson/Jenkins to track test coverage. The code sample below illustrates how to use the code. See example.m for details.
%add source code to path
addpath('src');
%import classses, functions
import edu.stanford.covert.test.Coverage;
%turn profiler on
profile('on', '-nohistory');
%run code
...
%turn profiler off
profile('off');
%generate coverage report
report = Coverage('src', '..');
report.exportXML(<output file name>);
|
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
mlcovr Package, absolutepath.m, absolutepath
|
| Required Products |
Control System Toolbox
|
| MATLAB release |
MATLAB 7.11 (2010b)
|
| Other requirements |
- MATLAB >= 2008a
- includes strjoin function from Peter Acklam (http://home.online.no/~pjacklam/matlab/software/util/)
- includes absolutepath function inspired by Jochen Lenz (http://www.mathworks.com/matlabcentral/fileexchange/3857-absolutepath-m)
|
|
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 |
|
Contact us at files@mathworks.com