Coverage Report Generator
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>);
Cita come
Jonathan Karr (2025). Coverage Report Generator (https://it.mathworks.com/matlabcentral/fileexchange/33972-coverage-report-generator), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato da: absolutepath.m, mlcovr Package, absolutepath
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
