Code covered by the BSD License  

Highlights from
Coverage Report Generator

Coverage Report Generator

by

 

28 Nov 2011 (Updated )

Generates Cobertura-style XML coverage report

example.m
%add source code to path
addpath('src');
addpath('lib/absolutepath');
addpath('lib/util/strutil');

%import classses, functions
import edu.stanford.covert.test.Coverage;

%turn profiler on
profile('on', '-nohistory');

%run code
plot(rand(10, 1))
close all;

%turn profiler off
profile('off');

%generate coverage report
outFileName = 'example.coverage.xml';
report = Coverage('src', '..');
report.exportXML(outFileName);

Contact us