Skip to content
Snippets Groups Projects
Commit 58c9c488 authored by Federico Felici's avatar Federico Felici Committed by Olivier Sauter
Browse files

Correct COV file name

parent 8b6f23d2
Branches
Tags
1 merge request!110Add test coverage and update test scripts
function [passed,results] = run_tbx_tests(test_case)
function [passed,results] = run_tbx_tests(test_case,coverage_report)
% Test runner for generic toolbox tests
if nargin==0 || isempty(test_case)
......@@ -98,7 +98,7 @@ if needCOV
reportFormat = matlab.unittest.plugins.codecoverage.CoverageReport(reportFolder);
otherwise
% Produce XML file in Cobertura format (for Gitlab MR viz.)
xmlFile = sprintf('test_%s_%s_cov.xml',test_case,version('-release'));
xmlFile = fullfile(getenv('CI_PROJECT_DIR'),sprintf('test_%s_%s_cov.xml',test_case,version('-release')));
reportFormat = matlab.unittest.plugins.codecoverage.CoberturaFormat(xmlFile);
end
p = matlab.unittest.plugins.CodeCoveragePlugin.forFolder(fileparts(mfilename('fullpath')),...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment