Skip to content
Snippets Groups Projects
Commit 8b105ea1 authored by Antoine Merle's avatar Antoine Merle
Browse files

Fix HTML code coverage report generation

parent b1258bd8
No related branches found
No related tags found
1 merge request!110Add test coverage and update test scripts
Pipeline #82011 passed
...@@ -54,7 +54,10 @@ if isempty(test_case) ...@@ -54,7 +54,10 @@ if isempty(test_case)
disp([{'all'};unique([suite_all.Tags])']); disp([{'all'};unique([suite_all.Tags])']);
return return
end end
assert(~(coverage_report && strcmpi(test_case,'coverage')),'coverage_report=true should only be used with test_case=''coverage'''); if coverage_report
assert(~verLessThan('matlab','9.6.0'),'coverage_report=true needs MATLAB 9.6.0 or later');
assert( strcmpi(test_case,'coverage'),'coverage_report=true should only be used with test_case=''coverage''');
end
[~,s] = lastwarn(); [~,s] = lastwarn();
if isequal(s,'MATLAB:unittest:TestSuite:FileExcluded') if isequal(s,'MATLAB:unittest:TestSuite:FileExcluded')
...@@ -63,7 +66,7 @@ if isequal(s,'MATLAB:unittest:TestSuite:FileExcluded') ...@@ -63,7 +66,7 @@ if isequal(s,'MATLAB:unittest:TestSuite:FileExcluded')
end end
switch lower(test_case) switch lower(test_case)
case 'all' case {'all','coverage'}
suite = suite_all; % run all suite = suite_all; % run all
otherwise otherwise
s = HasTag(test_case); s = HasTag(test_case);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment